Skip to content

Commit da2752a

Browse files
committed
Change test for readability
1 parent 4cc25fe commit da2752a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-data/unit/check-python310.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2786,7 +2786,8 @@ class B(TypedDict):
27862786
num: int
27872787

27882788
d: A | B
2789-
match d["tag"]: # E: Cases within match statement do not exhaustively handle all values: "Literal['b']". If not intended to handle all cases, use `case _: pass` # E: Cases within match statement do not exhaustively handle all values: "B". If not intended to handle all cases, use `case _: pass`
2789+
match d["tag"]: # E: Cases within match statement do not exhaustively handle all values: "Literal['b']". If not intended to handle all cases, use `case _: pass` \
2790+
# E: Cases within match statement do not exhaustively handle all values: "B". If not intended to handle all cases, use `case _: pass`
27902791
case "a":
27912792
reveal_type(d) # N: Revealed type is "TypedDict('__main__.A', {'tag': Literal['a'], 'name': builtins.str})"
27922793
reveal_type(d["name"]) # N: Revealed type is "builtins.str"

0 commit comments

Comments
 (0)