-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
A dataclass of type enum.Enum
does not contain the enum __members__
object
#2317
Comments
Possibly related: #1730 |
I don't think so @jacobtylerwalls. That issue is basically about excluding dunders from |
Pitching #1598 again as it would be nice to broaden our support for instance variables 😄 Note that this is an issue in
❯ python test.py
{'asd': <Something.asd: '1'>}
{'asd': <OtherSomething.asd: '1'>} |
Indeed @DanielNoord. Perhaps I was unclear in the comment. I meant that |
Steps to reproduce
See pylint-dev/pylint#9100 for context/original report.
A fix is made to Pylint to prevent the crash but work required in astroid to fix the root cause.
Current behavior
A false positive in Pylint for
invalid-name
:Expected behavior
No false positive
python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
output3.1.0-dev0
The text was updated successfully, but these errors were encountered: