Emit no-member for __annotations__
for py-version < 3.10
#9928
Labels
False Negative 🦋
No message is emitted but something is wrong with the code
Minor 💅
Polishing pylint is always nice
py-version
typing
I have the following code, with
py-version=3.8
specified in my pylintrc:When I run this in a python 3.8 environment, pylint is happy with
no-member
being disabled.When I run this in a python 3.10 environment I get a
useless-supression
error due to the disable on __annotations. .__annotations changes for python 3.10 and above.Both of these are accurate, however, with
py-version=3.8
specified I would expect the same results on python 3.8 and python 3.10. Am I misinterpreting the scope ofpy-version
, isno-member
not a version dependent check?The text was updated successfully, but these errors were encountered: