-
Notifications
You must be signed in to change notification settings - Fork 946
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
Allow List[int] or int but not float or str #1377
Conversation
@janiversen |
eca05bd
to
12c28f5
Compare
4ee084d
to
3e87ebe
Compare
@alexrudd2 this one can be merged, when you want, just change it to "ready for review", I solved a couple of issues. |
While at it, I corrected mixin.py, so it gets a green light from mypy. |
Ok, good. I tried other options, but the only two that worked were |
Things brings it down from 150 to 5 |
client/base.py is up for a major change, so it is not really worth while investing too much time there. I know mypy allows a list of files not to consider in the configuration, using that would allow us to add mypy to CI right now, and then you can reduce the list as you go along. |
And just for the record, the old return scope was far too limited, because there are something like 5 classes that can be returned all included in ModbusResponse. Actually using ModbusResponse, might have a positive effect, because users see that all calls return the same struct (with a field not being filled depending on the request). |
Yes, it's why I've not bothered. I will see if I can get things ready for CI (and enable |
See #1363.
This does not fully close that issue, but at least corrects the type hints.