You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This runs successfully but linting with pylint gives the error:
$ pylint reproducer.py --disable=invalid-name,missing-module-docstring,missing-function-docstring,missing-class-docstring,too-few-public-methods
************* Module reproducer
reproducer.py:10:15: E1101: Instance of 'list' has no 'get_name' member (no-member)
-----------------------------------
Your code has been rated at 7.22/10
Current behavior
Pylint fails to realise that items within A._data are not lists. This is a new regression in astroid 2.5 and downgrading to 2.4.2 while changing no other packages causes the false positive to go away.
Expected behavior
No error message.
The text was updated successfully, but these errors were encountered:
I realised this might actually be the same thing as the other recent issues (#895 and #899) so I tried running with #901 locally and it fixes this issue. Sorry for the duplicated report!
Steps to reproduce
Make a file containing:
This runs successfully but linting with pylint gives the error:
Current behavior
Pylint fails to realise that items within
A._data
are not lists. This is a new regression in astroid 2.5 and downgrading to 2.4.2 while changing no other packages causes the false positive to go away.Expected behavior
No error message.
The text was updated successfully, but these errors were encountered: