Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Catch up with main
  • Loading branch information
brandtbucher committed Dec 29, 2022
commit edc066cbb770dd64beedce45a172a1194a4df164
6 changes: 3 additions & 3 deletions Lib/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ def wrapper(self):


def _create_code(name, args, body, *, globals=None, locals=None):
# Note that we mutate locals when exec() is called. Caller
# beware! The only callers are internal to this module, so no
# Note that we may mutate locals. Callers beware!
# The only callers are internal to this module, so no
# worries about external callers.
if locals is None:
locals = {}
Expand Down Expand Up @@ -585,7 +585,7 @@ def _init_fn(fields, std_fields, kw_only_fields, frozen, has_post_init,
locals = {
'MISSING': MISSING,
'_HAS_DEFAULT_FACTORY': _HAS_DEFAULT_FACTORY,
'BUILTINS': builtins,
'__dataclass_builtins_object__': object,
}

body_lines = []
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.