@@ -2,6 +2,7 @@ from collections.abc import (
2
2
Callable ,
3
3
Generator ,
4
4
Iterable ,
5
+ Mapping ,
5
6
)
6
7
import sqlite3
7
8
from typing import (
@@ -21,6 +22,7 @@ from pandas._libs.lib import NoDefault
21
22
from pandas ._typing import (
22
23
DtypeArg ,
23
24
DtypeBackend ,
25
+ Scalar ,
24
26
npt ,
25
27
)
26
28
@@ -65,7 +67,7 @@ def read_sql_query(
65
67
con : _SQLConnection ,
66
68
index_col : str | list [str ] | None = ...,
67
69
coerce_float : bool = ...,
68
- params : list [str ] | tuple [str , ...] | dict [str , str ] | None = ...,
70
+ params : list [Scalar ] | tuple [Scalar , ...] | Mapping [str , Scalar ] | None = ...,
69
71
parse_dates : list [str ] | dict [str , str ] | dict [str , dict [str , Any ]] | None = ...,
70
72
* ,
71
73
chunksize : int ,
@@ -78,7 +80,7 @@ def read_sql_query(
78
80
con : _SQLConnection ,
79
81
index_col : str | list [str ] | None = ...,
80
82
coerce_float : bool = ...,
81
- params : list [str ] | tuple [str , ...] | dict [str , str ] | None = ...,
83
+ params : list [Scalar ] | tuple [Scalar , ...] | Mapping [str , Scalar ] | None = ...,
82
84
parse_dates : list [str ] | dict [str , str ] | dict [str , dict [str , Any ]] | None = ...,
83
85
chunksize : None = ...,
84
86
dtype : DtypeArg | None = ...,
@@ -90,7 +92,7 @@ def read_sql(
90
92
con : _SQLConnection ,
91
93
index_col : str | list [str ] | None = ...,
92
94
coerce_float : bool = ...,
93
- params : list [str ] | tuple [str , ...] | dict [str , str ] | None = ...,
95
+ params : list [Scalar ] | tuple [Scalar , ...] | Mapping [str , Scalar ] | None = ...,
94
96
parse_dates : list [str ] | dict [str , str ] | dict [str , dict [str , Any ]] | None = ...,
95
97
columns : list [str ] = ...,
96
98
* ,
@@ -104,7 +106,7 @@ def read_sql(
104
106
con : _SQLConnection ,
105
107
index_col : str | list [str ] | None = ...,
106
108
coerce_float : bool = ...,
107
- params : list [str ] | tuple [str , ...] | dict [str , str ] | None = ...,
109
+ params : list [Scalar ] | tuple [Scalar , ...] | Mapping [str , Scalar ] | None = ...,
108
110
parse_dates : list [str ] | dict [str , str ] | dict [str , dict [str , Any ]] | None = ...,
109
111
columns : list [str ] = ...,
110
112
chunksize : None = ...,
0 commit comments