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
Each case_clause adds 1, including the wildcard case _:, which is the fall-through and not a decision. A two-way match scores higher than the equivalent if.
Expected: both 2. Counting an irrefutable case block (case _: or a bare capture such as case other:, see PEP 634) as the default branch would match how switchdefault is usually treated.
Activity