Skip to content

Commit 13b11c1

Browse files
committed
stop unpacking a dictionary into another dictionary
1 parent 3a3b6c0 commit 13b11c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/dataclasses.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,8 @@ def _init_fn(fields, std_fields, kw_only_fields, frozen, has_post_init,
668668
annotations = {f.name: f.type for f in fields if f.init}
669669
annotations["return"] = None
670670

671-
locals = {**{'__dataclass_HAS_DEFAULT_FACTORY__': _HAS_DEFAULT_FACTORY,
672-
'__dataclass_builtins_object__': object,
673-
}
674-
}
671+
locals = {'__dataclass_HAS_DEFAULT_FACTORY__': _HAS_DEFAULT_FACTORY,
672+
'__dataclass_builtins_object__': object}
675673

676674
body_lines = []
677675
for f in fields:

0 commit comments

Comments
 (0)