-
Notifications
You must be signed in to change notification settings - Fork 514
Labels
enhancementThe issue is a request for improvement or a new featureThe issue is a request for improvement or a new featurestatus-pr_pending_mergeA PR is made and is under reviewA PR is made and is under reviewstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team
Description
What is the current behavior?
snowflake.connect
lacks any type annotations, despite usage of **kwargs
it's possible to share annotations between SnowflakeConnection
and snowflake.connect
through usage of Unpack
.
What is the desired behavior?
That snowflake.connect
is properly annotated making type-checkers such as MyPy and Pyright raise type-checking warnings when incorrect arguments are parsed in.
How would this improve snowflake-connector-python
?
Users relying on type-checkers or Pylance would get linting errors for invalid arguments without having to execute code. Additionally, by having py.typed
the package indicates it's properly typed however in this case proper annotations are missing.
Metadata
Metadata
Assignees
Labels
enhancementThe issue is a request for improvement or a new featureThe issue is a request for improvement or a new featurestatus-pr_pending_mergeA PR is made and is under reviewA PR is made and is under reviewstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team