Closed
Description
Bug description
# pylint: disable=missing-module-docstring
class Simple[T]:
def __init__(self, value: T):
self.value = value
Configuration
No response
Command used
python3.12 -m pylint a.py
Pylint output
************* Module a
a.py:3:28: E0602: Undefined variable 'T' (undefined-variable)
Expected behavior
There should be no error E0602 reported.
Pylint version
pylint 3.0.3
astroid 3.0.2
Python 3.12.1 (main, Dec 7 2023, 20:45:44) [Clang 15.0.0 (clang-1500.0.40.1)]
OS / Environment
OSX - Sonoma 14.1.2 (23B92)
Additional dependencies
No response