mypy
mypy copied to clipboard
Typing Error for Default Lambda Arg when using Generics
Wanted to cross-post this issue from Pyright: https://github.com/microsoft/pyright/issues/7291
From giving this same example a try in the MyPy playground. (Version 3.12, MyPy 1.8.0). We see that that MyPy complains about the initial function assignment because I is being passed in for V, even though V is bound to Any.