Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions test-data/unit/semanal-typeddict.test
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
-- Create Type

[case testCanCreateTypedDictTypeWithDictCall-xfail]
-- TODO: Implement support for this syntax.
--[case testCanCreateTypedDictTypeWithDictCall]
--from typing import TypedDict
--Point = TypedDict('Point', dict(x=int, y=int))
--[builtins fixtures/dict.pyi]
--[typing fixtures/typing-typeddict.pyi]
--[out]
--MypyFile:1(
-- ImportFrom:1(typing, [TypedDict])
-- AssignmentStmt:2(
-- NameExpr(Point* [__main__.Point])
-- TypedDictExpr:2(Point)))
from typing import TypedDict
Point = TypedDict('Point', dict(x=int, y=int))
[builtins fixtures/dict.pyi]
[typing fixtures/typing-typeddict.pyi]
[out]
MypyFile:1(
ImportFrom:1(typing, [TypedDict])
AssignmentStmt:2(
NameExpr(Point* [__main__.Point])
TypedDictExpr:2(Point)))

[case testCanCreateTypedDictTypeWithDictLiteral]
from typing import TypedDict
Expand Down