Open
Description
Bug description
In 3.14, evaluation of annotations is deferred. Pylint raises undefined-variable for the field annotation below, but in 3.14 this is a false positive.
class X:
x: X # <-- undefined-variable
Configuration
Command used
pylint annotation.py
Pylint output
annotation.py:2:7: E0602: Undefined variable 'X' (undefined-variable)
Expected behavior
no warning
Pylint version
pylint 3.3.2
astroid 3.3.6
Python 3.14.0a3+ (heads/main:2a66dd33dfc, Dec 21 2024, 16:04:14) [GCC 9.4.0]
OS / Environment
No response