googleapis / python-storage

Apache License 2.0
450 stars 154 forks source link

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

Open maroux opened 3 years ago

maroux commented 3 years ago

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

dahlbaek commented 2 years ago

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

sshishov commented 9 months ago

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