Skip to content

Commit c82d86b

Browse files
committed
Keep just the test
1 parent 027f629 commit c82d86b

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

Lib/dataclasses.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,11 +1338,6 @@ def _add_slots(cls, is_frozen, weakref_slot, defined_fields):
13381338
or _update_func_cell_for__class__(member.fdel, cls, newcls)):
13391339
break
13401340

1341-
# gh-135228: Make sure the original class can be garbage collected.
1342-
old_cls_dict = cls.__dict__ | _deproxier
1343-
old_cls_dict.pop('__weakref__', None)
1344-
old_cls_dict.pop('__dict__', None)
1345-
13461341
return newcls
13471342

13481343

@@ -1737,11 +1732,3 @@ def _replace(self, /, **changes):
17371732
# changes that aren't fields, this will correctly raise a
17381733
# TypeError.
17391734
return self.__class__(**changes)
1740-
1741-
1742-
# Hack to the get the underlying dict out of a mappingproxy
1743-
# Use it with: cls.__dict__ | _deproxier
1744-
class _Deproxier:
1745-
def __ror__(self, other):
1746-
return other
1747-
_deproxier = _Deproxier()

Misc/NEWS.d/next/Library/2025-07-20-16-56-55.gh-issue-135228.n_XIao.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)