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
In cursor.py, pyarrow's Table is set as Table = None when pyarrow is not available. It is then used as a type hint. You can't use expressions as type hints, and the correct way here (especially since Table isn't used anywhere in the file except as a type hint) is to use if TYPE_CHECKING.
I have made a PR for this, see link below shortly.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Pyarrow Table has wrong type signature in cursor.py
SNOW-994431: Pyarrow Table has wrong type signature in cursor.py
Dec 19, 2023
In cursor.py, pyarrow's
Table
is set asTable = None
when pyarrow is not available. It is then used as a type hint. You can't use expressions as type hints, and the correct way here (especially since Table isn't used anywhere in the file except as a type hint) is to useif TYPE_CHECKING
.I have made a PR for this, see link below shortly.
The text was updated successfully, but these errors were encountered: