False positives around PEP 695 generics #10091
Labels
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
Bug description
I have a medium-sized code-base I've been updating to PEP 695 typing, and I'm getting a lot of false positives.
Some minimal examples:
Errors with:
But:
Passes.
Also:
Passes
but:
Fails with:
I suspect:
class A[T]
is defining the variableT
.T
intype L[T]
.Configuration
Command used
Pylint output
Expected behavior
All of these examples should pass.
Pylint version
OS / Environment
Ubuntu 22.04.3 LTS (running under WSL)
Additional dependencies
The text was updated successfully, but these errors were encountered: