-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Unsupported object typing when using attr.ib
with default
#656
Comments
@danie1k Thanks for reporting the issue. Right now |
Here's for example the current attrs transform: https://github.com/PyCQA/astroid/blob/master/astroid/brain/brain_attrs.py |
This issue seems to be similar/continuation to #628.
pylint
misunderstood typing when usingattr.ib(default=...)
.I've tried
typing.cast
& attr.ib withtype
attr and the result is the same.Tested on
Steps to reproduce
pylint tst.py
.Current behavior
Expected behavior
Line 13 (class
D1
) should not raiseno-member
&unsupported-membership-test
warnings.python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
outputThe text was updated successfully, but these errors were encountered: