-
Notifications
You must be signed in to change notification settings - Fork 282
Open
Labels
Description
Describe the Bug
First, it seems #1369 is actually fixed; however, the bug still occurs when matching multiple objects:
def test_single_object(o: object) -> None:
match o:
case ("a", 1): pass # OK
case ("b", 1): pass # OK
case ("c", 1): pass # OK
def test_multi_match1(o1: object, o2: object) -> None:
match o1, o2:
case _, ("a", 1): pass # ❌️ [not-iterable]
case _, ("b", 1): pass # ❌️ [not-iterable]
case _, ("c", 1): pass # ❌️ [not-iterable]
def test_multi_match2(o1: object, o2: object) -> None:
match o1, o2:
case ("a", 1), _: pass # ❌️ [not-iterable]
case ("b", 1), _: pass # ❌️ [not-iterable]
case ("c", 1), _: pass # ❌️ [not-iterable] Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable