Detect inconsistent overload with TypeVar #1778
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
Code Snippet
Expected behaviour
Overload 2 is inconsistent with function signature.
Mypy
Actual behaviour
no error
Additional information
After changing the return type of oveload 2 to
list
, pylance will emit an error:The text was updated successfully, but these errors were encountered: