Skip to content

Commit 2a96e50

Browse files
committed
Sync with python#4072 for realz
1 parent 80c1b38 commit 2a96e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2884,7 +2884,7 @@ def builtin_item_type(tp: Type) -> Optional[Type]:
28842884
return tp.args[0]
28852885
elif isinstance(tp, TupleType) and all(not isinstance(it, AnyType) for it in tp.items):
28862886
return join_type_list(tp.items)
2887-
elif isinstance(tp, TypedDictType) and tp.fallback.type.fullname() == 'typing.Mapping':
2887+
elif isinstance(tp, TypedDictType):
28882888
# TypedDict always has non-optional string keys.
28892889
if tp.fallback.type.fullname() == 'typing.Mapping':
28902890
return tp.fallback.args[0]

0 commit comments

Comments
 (0)