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
While resolving #2537, I discovered that the root cause of my confusion was a lack of type safety for build function. I initially passed credentials as a positional argument instead of using the credentials= keyword, which could have been caught immediately if the method signature and documentation were more explicit.
What I mean, this is how types look for build function:
I found that python has stubs feature, similar to @types packages in npm, but there was no mention of it in google docs. Which bings me to this issue.
It would be ideal to provide built-in type annotation. But as a workaround it would be really beneficial to add mention of google-api-python-client-stubs in the docs. It will help new python users like myself help avoid such simple and time-consuming mistakes.
The text was updated successfully, but these errors were encountered:
While resolving #2537, I discovered that the root cause of my confusion was a lack of type safety for
build
function. I initially passed credentials as a positional argument instead of using the credentials= keyword, which could have been caught immediately if the method signature and documentation were more explicit.What I mean, this is how types look for build function:
I found that python has stubs feature, similar to
@types
packages in npm, but there was no mention of it in google docs. Which bings me to this issue.It would be ideal to provide built-in type annotation. But as a workaround it would be really beneficial to add mention of
google-api-python-client-stubs
in the docs. It will help new python users like myself help avoid such simple and time-consuming mistakes.The text was updated successfully, but these errors were encountered: