-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve types for client #2032
Improve types for client #2032
Conversation
4c7eb4b
to
2d31d8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok, with one small change for you, and a line I need to check before approving
Actually, the situation is more complicated :) pymodbus/pymodbus/client/base.py Lines 401 to 406 in a152762
If I keep adding type hints (mostly pymodbus/pymodbus/client/serial.py Lines 230 to 232 in a152762
Quite similar to #2031, but I do not see the full picture yet. Hence not (yet) annotating |
The recv() is an old relict, which I thought was removed long time ago....the very old code v2x had that for testing reasons I think. |
The _in_waiting() looks OK to me, but it the linters do not agree...... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You decide when you want to merge this and make more in a new PR
Down to 58! |
Solve another
9
errors withmypy --check-untyped-defs