Skip to content

Commit e7b5c14

Browse files
committed
update tests
1 parent db90cda commit e7b5c14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/ty_python_semantic/resources/mdtest/typed_dict.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ def homogeneous_list[T](*args: T) -> list[T]:
125125
reveal_type(homogeneous_list(1, 2, 3)) # revealed: list[Literal[1, 2, 3]]
126126
plot2: Plot = {"y": homogeneous_list(1, 2, 3), "x": None}
127127
reveal_type(plot2["y"]) # revealed: list[int]
128-
# TODO: no error
129-
# error: [invalid-argument-type]
128+
130129
plot3: Plot = {"y": homogeneous_list(1, 2, 3), "x": homogeneous_list(1, 2, 3)}
130+
reveal_type(plot3["y"]) # revealed: list[int]
131+
reveal_type(plot3["x"]) # revealed: list[int] | None
131132

132133
Y = "y"
133134
X = "x"

0 commit comments

Comments
 (0)