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
{{ message }}
Repository navigation
Variable type is not narrowed after "if" containing both call to "Never-returning" function and "raise" #5186
IIUC, the code above should be considered correctly typed. The body of the if statement in foo() never terminates normally. It either calls a function that returns Never or raises an exception. Thus, x should be narrowed to str after the if statement.
changed the title [-]Bug Report[/-][+]Variable type is not narrowed after "if" containing both call to "Never-returning" function and "raise"[/+]on Oct 10, 2026
Activity
[-]Bug Report[/-][+]Variable type is not narrowed after "if" containing both call to "Never-returning" function and "raise"[/+]