OpenCyphal / pycyphal

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

py.typed Typing #342

Closed manforowicz closed 4 months ago

manforowicz commented 5 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 5 months ago

yes please