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
f: int|strifisinstance(f, int):
# error: Unsupported operand types for + ("str" and "int")# even though there's no chance the value could be a string here since the lambda is immediately invoked
(lambda: f+1)()
# no error, even though the lambda could get called later when the type changesasdf=lambda: f+1