-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make library compatible with type checking and auto-completion #695
Comments
Hi @g3or3 thanks for the question - those are the types that are required by the adjacent service classes. Most of the operation, request, and response classes are defined there. It's a bit complicated to ensure that the library is compatible with mypy type checking. All of the API-specific code (i.e. anything under the That said, I'll mark this as a feature request and see if we can make the library structure compatible with type checking/auto-completion in the future. |
Thank you for the insight! Looking forward to this. |
This would be much appreciated. The way my team is handing this problem is using https://github.com/henribru/google-ads-stubs to improve our development velocity, but an officially supported solution would be great |
@g3or3 The reason Mypy doesn't complain about your code is that this package doesn't declare itself as supporting typechecking using a It would be great not having to maintain |
I noticed there are types available as part of the google ads client and I was wondering what the intended application is for them?
from google.ads.googleads.v11.services.types
I've tried using them to enforce type checking with mypy, e.g:
However this is not raised as an error with mypy. Besides auto-completion is there something I'm missing as an intended benefit? Also, is there a way to make this work with mypy to enforce type checking?
Thank you!
The text was updated successfully, but these errors were encountered: