False negative: Use of variable in type expression is not reported if its type is a TypeVar or Self #9750
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
spec compliance
The typing spec says that variables cannot be used within type expressions, but pyright fails to report an error in some cases.
By contrast, mypy correctly flags these errors.
The text was updated successfully, but these errors were encountered: