OpenCyphal / pycyphal

Python implementation of the Cyphal protocol stack.
https://pycyphal.readthedocs.io/
MIT License
120 stars 105 forks source link

py.typed Typing #342

Closed manforowicz closed 2 months ago

manforowicz commented 3 months ago

According to PEP 561,

Package maintainers who wish to support type checking of their code MUST add a marker file named py.typed to their package supporting typing.

I noticed that MyPy refuses to type-check pycyphal, and auto-generated DSDLs because they don't have a py.typed file.

Would it be a good idea to add a py.typed file to library code and auto-generated DSDLs?

pavel-kirienko commented 3 months ago

yes please