Skip to content

Commit 5918919

Browse files
authored
Fix failing match statement tests (#12007)
1 parent 9b63751 commit 5918919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-data/unit/check-python310.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ match m:
534534
case str(j):
535535
reveal_type(j) # N: Revealed type is "builtins.str"
536536
case tuple(k):
537-
reveal_type(k) # N: Revealed type is "builtins.tuple[Any]"
537+
reveal_type(k) # N: Revealed type is "builtins.tuple[Any, ...]"
538538
[builtins fixtures/primitives.pyi]
539539

540540
[case testClassPatternNarrowSelfCapture]
@@ -562,7 +562,7 @@ match m:
562562
case str():
563563
reveal_type(m) # N: Revealed type is "builtins.str"
564564
case tuple():
565-
reveal_type(m) # N: Revealed type is "builtins.tuple[Any]"
565+
reveal_type(m) # N: Revealed type is "builtins.tuple[Any, ...]"
566566
[builtins fixtures/primitives.pyi]
567567

568568
[case testClassPatternCaptureDataclass]

0 commit comments

Comments
 (0)