Skip to content

Commit 8bef78d

Browse files
committed
Fix type of SnowflakeCursorBase.__iter__
1 parent 35c03cc commit 8bef78d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

DESCRIPTION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
1515
- Added an option to exclude `botocore` and `boto3` dependencies by setting `SNOWFLAKE_NO_BOTO` environment variable during installation
1616
- Revert changing exception type in case of token expired scenario for `Oauth` authenticator back to `DatabaseError`
1717
- Added support for pandas conversion for Day-time and Year-Month Interval types
18+
* Fixed the return type of iterating over a cursor
1819

1920
- v3.17.4(September 22,2025)
2021
- Added support for intermediate certificates as roots when they are stored in the trust store

src/snowflake/connector/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ def reset(self, closing: bool = False) -> None:
16281628
if not self.connection._reuse_results:
16291629
self._result_set = None
16301630

1631-
def __iter__(self) -> Iterator[dict] | Iterator[tuple]:
1631+
def __iter__(self) -> Iterator[FetchRow]:
16321632
"""Iteration over the result set."""
16331633
while True:
16341634
_next = self.fetchone()

0 commit comments

Comments
 (0)