-
Notifications
You must be signed in to change notification settings - Fork 12
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
pylint no-member error with nested enums. #52
Comments
Hi @rshanor, thanks for the report. This does look like a failure to suppress
Could you copy in the output of |
Thanks for the reply @nelfin I am using Python 3.6.9. I tried out Python 3.6.9 in a fresh venv and everything worked. I checked this venv which had protobuf version 3.19. I downgraded this venv to my version of protobuf, which did not work! I realized I was on a super old version of protobuf (3.5.2.post1) I upgraded protobuf to 3.12 and this also worked. Thanks for the hint! If you are interested, minimal repro steps. python3 -m venv /tmp/pylint_test
/tmp/pylint_test/bin/python3 -m pip install pylint pylint-protobuf
/tmp/pylint_test/bin/python -m pip install protobuf==3.5.2.post1
/tmp/pylint_test/bin/python -m pylint --load-plugins=pylint_protobuf test_pylint.py |
Here is my proto
Compiled with
protoc foo.proto --python_out=.
Here is my test script, which runs fine.
But pylint still reports an error.
I tried with multiple versions of pylint, but get the same error no matter what. Here is my current version info tho.
Thank!
The text was updated successfully, but these errors were encountered: