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
Problem Statement
Type-hinting for return statements on API properties of WorkspaceClient no longer helpful beginning with version 0.42.0.
Though the imports exist at the top of the file for the API names, the return types specify the full path to these objects, which does not play nicely with editor help:
Previous
This sample uses 0.41.0.
Since 0.42.0
(it thinks that w.tables returns Any).
Proposed Solution
Updating the return type hints in the api properties to be as they were before, i.e. specifying the object type they are returning (which are imported in the module) as opposed to the full path to the object.
The text was updated successfully, but these errors were encountered:
Problem Statement
Type-hinting for return statements on API properties of WorkspaceClient no longer helpful beginning with version
0.42.0
.Though the imports exist at the top of the file for the API names, the return types specify the full path to these objects, which does not play nicely with editor help:
Previous
This sample uses
0.41.0
.Since
0.42.0
(it thinks that
w.tables
returnsAny
).Proposed Solution
Updating the return type hints in the api properties to be as they were before, i.e. specifying the object type they are returning (which are imported in the module) as opposed to the full path to the object.
The text was updated successfully, but these errors were encountered: