Match involving unpacked tuple incorrectly marked unreachable #17095
Labels
bug
mypy got something wrong
topic-match-statement
Python 3.10's match statement
topic-pep-646
PEP 646 (TypeVarTuple, Unpack)
topic-reachability
Detecting unreachable code
(Playground)
Produces no output, and with
--warn-unreachable
on says that line 4 is unreachable. But it's not unreachable; the case can match.For comparison, pyright does not think the clause is unreachable but deduces an incorrect type (microsoft/pyright#7613).
The text was updated successfully, but these errors were encountered: