Generic types in annotations of __getattr__ in metaclasses are not deduced correctly #1481
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
Pylance should determine the type of all 4 outputs to be
int
Actual behaviour
Pylance determines that the type of
output3
isType[SomeFunctions]
no matter the type of the argument toSomeFunctions.other_function
.Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: