Skip to content

Commit

Permalink
Fix failing tests after merge (Caused by python#8578)
Browse files Browse the repository at this point in the history
  • Loading branch information
freundTech committed Sep 27, 2021
1 parent 423b04c commit f2e12f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test-data/unit/check-python310.test
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ match m:
case A(i, j):
reveal_type(i) # N: Revealed type is "builtins.str"
reveal_type(j) # N: Revealed type is "builtins.int"
[builtins fixtures/dataclasses.pyi]

[case testClassPatternCaptureDataclassNoMatchArgs]
from dataclasses import dataclass
Expand All @@ -559,6 +560,7 @@ m: A
match m:
case A(i, j): # E: Class doesn't define __match_args__
pass
[builtins fixtures/dataclasses.pyi]

[case testClassPatternCaptureDataclassPartialMatchArgs]
from dataclasses import dataclass, field
Expand All @@ -575,6 +577,7 @@ match m:
pass
case A(k):
reveal_type(k) # N: Revealed type is "builtins.str"
[builtins fixtures/dataclasses.pyi]

[case testClassPatternCaptureNamedTupleInline]
from collections import namedtuple
Expand Down

0 comments on commit f2e12f8

Please sign in to comment.