-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enum: Instance of 'int' has no 'value' member (no-member) #2224
Labels
Comments
PCManticore
added
Bug 🪲
Needs astroid Brain 🧠
Needs a brain tip in astroid (then an astroid upgrade)
labels
Jun 28, 2018
Thank you for the report! |
Notably, this affects class Foo(enum.Flag):
NONE = 0
BAR = 1
BAZ = 2
print(Foo.NONE.value) |
I believe it's fixed in a recent release. |
Which release? |
Still happening in version 2.4.3. |
Just found the issue in 2.4.4 |
same here, will it be updated? |
any update on this? |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Steps to reproduce
Run
pylint
on the above file.Current behavior
E: 16, 0: Instance of 'int' has no 'value' member (no-member)
Expected behavior
No error.
(Subclassing an enumeration is allowed only if the enumeration does not define any members. )
pylint --version output
The text was updated successfully, but these errors were encountered: