Closed
Description
Since the release of types-protobuf
3.14.19, the type checking based on this package produces a number of errors such as
Library stubs not installed for "google.protobuf.empty_pb2" (or incompatible with Python 3.9)
MVE
#/tmp/test_protobuf.py
from google.protobuf.empty_pb2 import Empty
e = Empty()
python3 -m venv test-protobuf-venv
source test-protobuf-venv/bin/activate
pip install mypy types-protobuf
mypy /tmp/test_protobuf.py
The script fails with types-protobuf 3.14.19, but works with 3.14.18, regardless of python version (errors observed for 3.7 to 3.10).
Metadata
Metadata
Assignees
Labels
No labels