Skip to content

Commit f153641

Browse files
reverting incorrect type-hint changes
1 parent ec95c56 commit f153641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/snowflake/connector/cursor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ def fetchone(self) -> dict | tuple | None:
12051205
except StopIteration:
12061206
return None
12071207

1208-
def fetchmany(self, size: int | None = None) -> list[dict | tuple | None]:
1208+
def fetchmany(self, size: int | None = None) -> list[tuple] | list[dict]:
12091209
"""Fetches the number of specified rows."""
12101210
if size is None:
12111211
size = self.arraysize
@@ -1231,7 +1231,7 @@ def fetchmany(self, size: int | None = None) -> list[dict | tuple | None]:
12311231

12321232
return ret
12331233

1234-
def fetchall(self) -> list[dict | tuple | None]:
1234+
def fetchall(self) -> list[tuple] | list[dict]:
12351235
"""Fetches all of the results."""
12361236
ret = []
12371237
while True:

0 commit comments

Comments
 (0)