Skip to content

Commit

Permalink
Fix failing match statement tests (#12007)
Browse files Browse the repository at this point in the history
  • Loading branch information
JukkaL authored Jan 18, 2022
1 parent 9b63751 commit 5918919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-data/unit/check-python310.test
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ match m:
case str(j):
reveal_type(j) # N: Revealed type is "builtins.str"
case tuple(k):
reveal_type(k) # N: Revealed type is "builtins.tuple[Any]"
reveal_type(k) # N: Revealed type is "builtins.tuple[Any, ...]"
[builtins fixtures/primitives.pyi]

[case testClassPatternNarrowSelfCapture]
Expand Down Expand Up @@ -562,7 +562,7 @@ match m:
case str():
reveal_type(m) # N: Revealed type is "builtins.str"
case tuple():
reveal_type(m) # N: Revealed type is "builtins.tuple[Any]"
reveal_type(m) # N: Revealed type is "builtins.tuple[Any, ...]"
[builtins fixtures/primitives.pyi]

[case testClassPatternCaptureDataclass]
Expand Down

0 comments on commit 5918919

Please sign in to comment.