We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c1b38 commit 2a96e50Copy full SHA for 2a96e50
mypy/checker.py
@@ -2884,7 +2884,7 @@ def builtin_item_type(tp: Type) -> Optional[Type]:
2884
return tp.args[0]
2885
elif isinstance(tp, TupleType) and all(not isinstance(it, AnyType) for it in tp.items):
2886
return join_type_list(tp.items)
2887
- elif isinstance(tp, TypedDictType) and tp.fallback.type.fullname() == 'typing.Mapping':
+ elif isinstance(tp, TypedDictType):
2888
# TypedDict always has non-optional string keys.
2889
if tp.fallback.type.fullname() == 'typing.Mapping':
2890
return tp.fallback.args[0]
0 commit comments