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
Exhaustive tuple match reports a missing return #5621
ERROR Function declared to return `int`, but one or more paths are missing an explicit `return` [bad-return]
I'd expect both functions to be accepted, as the four cases cover every combination of the two booleans. The accepted assert_never suggests Pyrefly already knows that no values can reach the final case 🤔
Activity
rchen152 commentedon Nov 13, 2026
Thanks for the report! This looks like it likely has the same cause as #5206, so I'm going to merge them.