no-member
error in annotations
#6594
Labels
Enhancement ✨
Improvement to a component
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
Bug description
First discovered in pylint-dev/astroid#1555
Configuration
No response
Command used
Pylint output
Expected behavior
With
from __future__ import annotations
, the type annotation isn't evaluated at runtime and thus won't throw an error. Furthermore it's possible to use classes that way which are only defined in stub files.Similarly to string annotations, pylint should just ignore these cases and let type checker handle it.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: