-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Exhaustiveness of type tuple[bool, bool] #21968
Copy link
Copy link
Open
Labels
bugmypy got something wrongmypy got something wrongtopic-match-statementPython 3.10's match statementPython 3.10's match statementtopic-reachabilityDetecting unreachable codeDetecting unreachable code
Description
Activity
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-match-statementPython 3.10's match statementPython 3.10's match statementtopic-reachabilityDetecting unreachable codeDetecting unreachable code
Bug Report
It looks like the exhaustiveness of tuples of bools is not checked in match statements.
To Reproduce
Expected Behavior
Should pass, looks exhaustive to me (or I should go take a nap).
Actual Behavior
Your Environment
--enable-error-code exhaustive-matchmypy.ini(and other config files): ø