pyhys / minimalmodbus

Easy-to-use Modbus RTU and Modbus ASCII implementation for Python.
Apache License 2.0
306 stars 146 forks source link

Consider conforming to PEP 561 in order to make type annotations usable #123

Open alehed opened 12 months ago

alehed commented 12 months ago

Without this, the type annotations are not that useful when using mypy, as mypy will consider the package untyped and ignore the type annotations.

Conforming to PEP 561 entails:

If you would like me to make a PR with those changes, please let me know.