Replies: 1 comment
|
We do not want dependencies unless absolutely requiered. Only depending on pyserial is one of the strong features of pymodbus. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
There's this interesting library for performing runtime checking called beartype: https://beartype.readthedocs.io/en/latest/.
I thought it could be used to express some of the more specific constraints in a more declarative way in something like
SimDevice, particularly the__check_*methods called from__post_init__and__check_parameters. I can make a PR with what this could look like.I see that this package doesn't have any required dependencies, only optional ones (
pyserial,aiohttp), so adding beartype would mean adding one required dependency.All reactions