Tuple with TypeVar as Function Parameter: Expected class type but received "Literal[0]" #2169
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
No error when using a parameter of a tuple type that uses a TypeVar
Actual behaviour
Getting error when using a parameter of a tuple type that uses a TypeVar, see code below.
It seems to be a regression. I rolled back to Pylance 2021.11.2, which does not give me this error.
Logs
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: