@@ -28,6 +28,10 @@ _SQLConnection = Union[
28
28
sqlite3 .Connection ,
29
29
]
30
30
31
+ _SQLStatement = Union [
32
+ str , sqlalchemy .sql .expression .Selectable , sqlalchemy .sql .expression .TextClause
33
+ ]
34
+
31
35
@overload
32
36
def read_sql_table (
33
37
table_name : str ,
@@ -53,7 +57,7 @@ def read_sql_table(
53
57
) -> DataFrame : ...
54
58
@overload
55
59
def read_sql_query (
56
- sql : str | sqlalchemy . sql . expression . Selectable ,
60
+ sql : _SQLStatement ,
57
61
con : _SQLConnection ,
58
62
index_col : str | list [str ] | None = ...,
59
63
coerce_float : bool = ...,
@@ -65,7 +69,7 @@ def read_sql_query(
65
69
) -> Generator [DataFrame , None , None ]: ...
66
70
@overload
67
71
def read_sql_query (
68
- sql : str | sqlalchemy . sql . expression . Selectable ,
72
+ sql : _SQLStatement ,
69
73
con : _SQLConnection ,
70
74
index_col : str | list [str ] | None = ...,
71
75
coerce_float : bool = ...,
@@ -76,7 +80,7 @@ def read_sql_query(
76
80
) -> DataFrame : ...
77
81
@overload
78
82
def read_sql (
79
- sql : str | sqlalchemy . sql . expression . Selectable ,
83
+ sql : _SQLStatement ,
80
84
con : _SQLConnection ,
81
85
index_col : str | list [str ] | None = ...,
82
86
coerce_float : bool = ...,
@@ -88,7 +92,7 @@ def read_sql(
88
92
) -> Generator [DataFrame , None , None ]: ...
89
93
@overload
90
94
def read_sql (
91
- sql : str | sqlalchemy . sql . expression . Selectable ,
95
+ sql : _SQLStatement ,
92
96
con : _SQLConnection ,
93
97
index_col : str | list [str ] | None = ...,
94
98
coerce_float : bool = ...,
0 commit comments