Skip to content

Commit a6de29b

Browse files
Rename _frozen_get_del_attr
1 parent 2160254 commit a6de29b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/dataclasses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ def _init_fn(fields, std_fields, kw_only_fields, frozen, has_post_init,
725725
annotation_fields=annotation_fields)
726726

727727

728-
def _frozen_get_del_attr(cls, fields, func_builder):
728+
def _frozen_set_del_attr(cls, fields, func_builder):
729729
locals = {'__class__': cls,
730730
'FrozenInstanceError': FrozenInstanceError}
731731
condition = 'type(self) is __class__'
@@ -1199,7 +1199,7 @@ def _process_class(cls, init, repr, eq, order, unsafe_hash, frozen,
11991199
overwrite_error='Consider using functools.total_ordering')
12001200

12011201
if frozen:
1202-
_frozen_get_del_attr(cls, field_list, func_builder)
1202+
_frozen_set_del_attr(cls, field_list, func_builder)
12031203

12041204
# Decide if/how we're going to create a hash function.
12051205
hash_action = _hash_action[bool(unsafe_hash),

0 commit comments

Comments
 (0)