You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lambda in the following code snippet reports error: Cannot infer type of lambda starting from mypy 1.9.0 (It did not report an error with mypy 1.8.0).
#15459 seems related, but it looks as mypy 1.8.0 also reported an error there.
(The immediate cause of the new false positive was python/typeshed@a08d2d5, but the underlying issue is mypy struggling to solve a TypeVarTuple when you're passing in a lambda.)
Bug Report
The lambda in the following code snippet reports
error: Cannot infer type of lambda
starting from mypy 1.9.0 (It did not report an error with mypy 1.8.0).#15459 seems related, but it looks as mypy 1.8.0 also reported an error there.
To Reproduce
mypy playground
Expected Behavior
No error shown regarding the lambda.
Actual Behavior
mypy reports Cannot infer type of lambda [misc]
Your Environment
mypy.ini
(and other config files): -The text was updated successfully, but these errors were encountered: