Skip to content

Commit e31a00c

Browse files
committed
Add get_proper_type
1 parent 839afb5 commit e31a00c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/typeanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ def try_analyze_special_unbound_type(self, t: UnboundType, fullname: str) -> Typ
819819
)
820820
return AnyType(TypeOfAny.from_error)
821821
item = t.args[0]
822-
if not isinstance(item, TypedDictType):
822+
if not isinstance(get_proper_type(item), TypedDictType):
823823
self.fail(
824824
"Argument to TypedDict[] must be a literal dictionary mapping item names to types",
825825
t,

0 commit comments

Comments
 (0)