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
{{ message }}
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
In #716 a py.typed file was added to tell mypy that it should use the provided type annotations (or stub-files) in this package.
Problem with that: there are no type annotations and no stub-file.
In our application this leads to errors like this:
( only on 2.2.0, not in 2.1.0)
Environment details
Mac OS 12.2.1
Python version: 3.10.2
pip version: 21.2.4
google-cloud-storage version: 2.2.0
Steps to reproduce
install 2.2.0 in your application
use a class anywhere ( it broke for Client and Blob for me
use mypy --strict ( I believe the needed settings are disallow_untyped_defs or disallow_untyped_calls, but I'm not 100% certain. I can provide my config if that's needed).
Reacted by Pietro De Nicolao, Sofija Jovic, Claudio Scalzo, Omar Cardia, Davide Pedranz, Paul Matthews, Mattia Gentil, Aldo D'Aquino, ChristianCoenen, Fabrizio Casati and 9 more
Thank you for this report @syphar and others following along.
We are looking into this now, and we should have a quick fix new release that temporarily rolls back these mypy changes, while we investigate further.
Activity
unforced commentedon Mar 15, 2022
Thank you for this report @syphar and others following along.
We are looking into this now, and we should have a quick fix new release that temporarily rolls back these mypy changes, while we investigate further.
fix: remove py.typed marker file for PEP 561 (#735)
unforced commentedon Mar 15, 2022
You should be able to update your library to 2.2.1 and this problem should be addressed.
Thank you again for bringing the issue to our awareness!