Package: python3-typeshed
Version: 0.0~git20231111.6764465-2

python3-typeshed has python3-types-protobuf in its Provides, so I assume it's supposed to provide types for google.protobuf? But I don't actually see any stubs for that package, and mypy gives this error:

dseomn@solaria:/tmp/tmp.ENkl9u3Pjr$ cat foo.py
from google.protobuf import json_format
dseomn@solaria:/tmp/tmp.ENkl9u3Pjr$ mypy foo.py
foo.py:1: error: Module "google.protobuf" has no attribute "json_format" [attr-defined]
Found 1 error in 1 file (checked 1 source file)


Until recently, I just configured mypy with `ignore_missing_imports = true` for google.protobuf.*, but that stopped working sometime around the upgrade from python3-typeshed 0.0~git20221107.4f381af-1 to 0.0~git20231111.6764465-2. (I don't know if that's the cause or if the timing is a coincidence, but either way, it looks like the stubs are missing.)

Reply via email to