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
Yes, this seems like a mypy bug. The technical explanation is that mypy doesn't use information from the surrounding call expression as part of the type context for the lambda expression.
Sorry I didn't look through all issues, so this migh very well be a duplicate.
This should be rejected by MyPy (which is true for pytype btw):
x
in the lambda can only ever be of typeint
anyway, so the result of the whole expression can only beint
as well, neverstr
.The text was updated successfully, but these errors were encountered: