gijzelaerr / python-snap7

A Python wrapper for the snap7 PLC communication library
http://python-snap7.readthedocs.org/
MIT License
643 stars 245 forks source link

Add py.typed marker file #342

Closed mthuurne closed 2 years ago

mthuurne commented 2 years ago

Currently python-snap7 includes type annotations, but these are ignored when type-checking an application that uses this library. By including the py.typed marker file in the wheel, type checkers like mypy can check whether applications call python-snap7 with the correct types.

https://www.python.org/dev/peps/pep-0561/#packaging-type-information

mthuurne commented 2 years ago

The CI error is a timeout when installing tooling, so I guess it's an issue in the test infrastructure rather than a problem in the PR itself.