mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Typing Error for Default Lambda Arg when using Generics

Open max-muoto opened this issue 1 year ago • 0 comments

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.

max-muoto avatar Feb 19 '24 21:02 max-muoto