-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update protobuf import to avoid pylint errors #774
Comments
I would extend this issue to change all other imports from protobuf stuff, I think there should be more in the client code. |
OK, so it seems the test I did was wrong, and we effectively need to add an ignore where the symbol is used anyways, so I'll close this as invalid. BTW, the underlying issue seems to be that I guess we need to test it properly and maybe report to |
The mypy type hint errors in microgrid client were fixed in an attempt to address #774 which might no longer need to be addressed as the suggestion is just moving the type hint error from `no-name-in-module` where `protobuf.*` is imported to `no-member` where it is used. Anyway I kept these commits in case we want to merge them, otherwise we can just close this PR and #774.
OK, it seems it is not really fixed in
|
What's needed?
Remove the pylint
no-name-in-module
disable comments insrc/frequenz/sdk/microgrid/client/_client.py
.Proposed solution
Update import to avoid the pylint error
no-name-in-module
as follows:From:
To:
Once the change above is made, use
empty_pb2.Empty
instead and remove all the comments to disable the pylint error insrc/frequenz/sdk/microgrid/client/_client.py
Additional context
Suggested in #708 (review)
The text was updated successfully, but these errors were encountered: