Skip to content

Commit 957420a

Browse files
committed
Make typeddicts non-total.
1 parent 312fac5 commit 957420a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/plugins/dataclasses.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def _asdictify_inner(typ: Type, seen_dataclasses: FrozenSet[str]) -> Type:
464464
assert attr_type is not None
465465
fields[attr.name] = _asdictify_inner(attr_type, seen_dataclasses)
466466
return make_anonymous_typeddict(api, fields=fields,
467-
required_keys=set(fields.keys()))
467+
required_keys=set())
468468
elif info.has_base('builtins.list'):
469469
supertype_instance = map_instance_to_supertype(typ, api.named_generic_type(
470470
'builtins.list', []).type)

0 commit comments

Comments
 (0)