Skip to content
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

Adding type hints so static analyzers like mypy can work with google.cloud.storage #393

Open
maroux opened this issue Mar 9, 2021 · 2 comments
Assignees
Labels
api: storage Issues related to the googleapis/python-storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@maroux
Copy link

maroux commented Mar 9, 2021

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is your feature request related to a problem? Please describe.
Tools like mypy can use type hints to run static analysis on your code to find bugs in incorrect type usage.
Describe the solution you'd like
Mypy requires type hints to be exported by the library, either as part of the library and exported per PEP 484, or as a separate stubs library per PEP 561.
Describe alternatives you've considered
Currently we're ignoring all typing information for this library.
Additional context

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Mar 9, 2021
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Mar 10, 2021
@JesseLovelace JesseLovelace added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed triage me I really want to be triaged. labels Mar 10, 2021
@dahlbaek
Copy link

dahlbaek commented Jul 2, 2022

This would be an amazing feature! Is there any information on the current status?

@sshishov
Copy link

Also waiting for this feature as type hints become pretty standard in python nowadays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

6 participants