[unsubscriptable-object] FP for generic classes (PEP 695) #9406
Labels
C: unsubscriptable-object
Issues related to 'unsubscriptable-object' check
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
python 3.12
typing
Milestone
Bug description
The behavior described in #9193 is still observable with pylint 3.0.3 for classes.
Works fine but
T
is marked as an undefined variable, andFoo
is marked unsubscriptable.Configuration
No response
Command used
Pylint output
Expected behavior
There should be no E0602 or E1136.
Pylint version
OS / Environment
macOS 14.2.1 / Apple M2 Max
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: