diff --git a/test-data/unit/semanal-typeddict.test b/test-data/unit/semanal-typeddict.test index 936ed1aed3ee..07e20e7dd58e 100644 --- a/test-data/unit/semanal-typeddict.test +++ b/test-data/unit/semanal-typeddict.test @@ -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