https://pantsbuild.org/ logo
a

ambitious-student-81104

07/20/2022, 9:01 PM
has anyone used
types-protobuf
with mypy with pants? How do you make
./pants check
aware of it?
f

fresh-cat-90827

07/20/2022, 10:38 PM
I have it enabled. Please see https://www.pantsbuild.org/docs/protobuf-python Just add this to your `pants.toml`:
Copy code
[python-protobuf]
mypy_plugin = true
šŸ­ 1
šŸ™ 1
a

ambitious-student-81104

07/21/2022, 12:33 AM
I’m using it but my protobuf generated code is still getting mypy complaints.
f

fresh-cat-90827

07/21/2022, 7:44 AM
I wonder how the pb2 Python modules are generated — are there the
.pyi
files (stubs) aside them?
4 Views