no error when duplicate definition of TypeVar
#923
Labels
type checking / linting
issues relating to existing diagnostic rules or proposals for new diagnostic rules
upstream bug
a bug that also exists in pyright but has not been raised upstream
Code sample in basedpyright playground
note that you will still get an error on
TypeVar
s with a common name likeT
because it's considered all-caps and therefore is treated the same as aFinal
variableThe text was updated successfully, but these errors were encountered: