pyhys / minimalmodbus

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

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

Open alehed opened 1 year ago

alehed commented 1 year 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.