You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cursor.fetchone(), cursor.fetchmany() and cursor.fetchall() return a union type between tuple and dict. That require a lot of casting to work with type checkers.
What is the desired behavior?
Return a dict(or list of dicts) if cursor is DictCursor, a tuple(or list of tuples) if cursor is a TupleCursor, and keep the current implementation to SnowflakeCursor.
How would this improve snowflake-connector-python?
It will improve the type hints
References and other background
This issue was mentioned on: #1263
but closed after 6 months
There was a Pull request with some implemntation, with some comments. #1264
The text was updated successfully, but these errors were encountered:
What is the current behavior?
cursor.fetchone(), cursor.fetchmany() and cursor.fetchall() return a union type between tuple and dict. That require a lot of casting to work with type checkers.
What is the desired behavior?
Return a dict(or list of dicts) if cursor is DictCursor, a tuple(or list of tuples) if cursor is a TupleCursor, and keep the current implementation to SnowflakeCursor.
How would this improve
snowflake-connector-python
?It will improve the type hints
References and other background
This issue was mentioned on:
#1263
but closed after 6 months
There was a Pull request with some implemntation, with some comments.
#1264
The text was updated successfully, but these errors were encountered: