We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Enum
MyEnum.__members__.items()
observe E1101: Function '__members__' has no 'items' member (no-member)
E1101: Function '__members__' has no 'items' member (no-member)
Iterating over an Enum per the Python docs does not result in a linting error.
pylint 2.7.0 astroid 2.5
The text was updated successfully, but these errors were encountered:
I can make a patch about this issue
Sorry, something went wrong.
I'm facing the same issue, but with values instead of items. Would expect it's the same for keys as well.
values
items
keys
I have __members__[something] which gives me unsubscriptable-object. I guess everything under __members__ is invisible...
__members__[something]
unsubscriptable-object
__members__
Successfully merging a pull request may close this issue.
Steps to reproduce
Enum
subclassMyEnum.__members__.items()
Current behavior
observe
E1101: Function '__members__' has no 'items' member (no-member)
Expected behavior
Iterating over an Enum per the Python docs does not result in a linting error.
pylint --version output
The text was updated successfully, but these errors were encountered: