From d431ae6a1b7ac80e83ff9b18011df2307a15827f Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Tue, 24 Feb 2026 04:33:11 -0600 Subject: [PATCH 1/2] uncomment testCanCreateTypedDictTypeWithDictCall --- test-data/unit/semanal-typeddict.test | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/test-data/unit/semanal-typeddict.test b/test-data/unit/semanal-typeddict.test index 936ed1aed3ee6..8d9df71939816 100644 --- a/test-data/unit/semanal-typeddict.test +++ b/test-data/unit/semanal-typeddict.test @@ -1,17 +1,16 @@ -- Create Type --- 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))) +[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))) [case testCanCreateTypedDictTypeWithDictLiteral] from typing import TypedDict From e7775a14b08aed21aed8db7765b083c9fc9965ee Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Tue, 24 Feb 2026 04:58:52 -0600 Subject: [PATCH 2/2] xfail it, and add the todo comment back in --- test-data/unit/semanal-typeddict.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test-data/unit/semanal-typeddict.test b/test-data/unit/semanal-typeddict.test index 8d9df71939816..07e20e7dd58eb 100644 --- a/test-data/unit/semanal-typeddict.test +++ b/test-data/unit/semanal-typeddict.test @@ -1,6 +1,7 @@ -- Create Type -[case testCanCreateTypedDictTypeWithDictCall] +[case testCanCreateTypedDictTypeWithDictCall-xfail] +-- TODO: Implement support for this syntax. from typing import TypedDict Point = TypedDict('Point', dict(x=int, y=int)) [builtins fixtures/dict.pyi]