SIGN IN SIGN UP

gh-135228: When @dataclass(slots=True) replaces a dataclass, make the original class collectible (#136893)

An interesting hack, but more localized in scope than #135230.

This may be a breaking change if people intentionally keep the original class around
when using `@dataclass(slots=True)`, and then use `__dict__` or `__weakref__` on the
original class.

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
J
Jelle Zijlstra committed
46cbdf967ada11b0286060488b61635fd6a2bb23
Parent: bbe589f
Committed by GitHub <noreply@github.com> on 7/22/2025, 4:43:34 AM