[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

bpo-32953: Dataclasses: frozen should not be inherited for non-dataclass derived classes by ericvsmith · Pull Request #6147 · python/cpython

ericvsmith

added 23 commits

January 24, 2018 07:13

…nd __delattr__ for frozen classes work.
…aclasses-inherit-frozen

Add tests.

ericvsmith deleted the bpo-32953-dataclasses-inherit-frozen branch

March 19, 2018 00:40

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Mar 19, 2018
…ass derived classes (pythonGH-6147)

If a non-dataclass derives from a frozen dataclass, allow attributes to be set.
Require either all of the dataclasses in a class hierarchy to be frozen, or all non-frozen.
Store `@dataclass` parameters on the class object under `__dataclass_params__`. This is needed to detect frozen base classes.
(cherry picked from commit f199bc6)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>

ericvsmith added a commit that referenced this pull request

Mar 19, 2018
…ass derived classes (GH-6147) (GH-6148)

If a non-dataclass derives from a frozen dataclass, allow attributes to be set.
Require either all of the dataclasses in a class hierarchy to be frozen, or all non-frozen.
Store `@dataclass` parameters on the class object under `__dataclass_params__`. This is needed to detect frozen base classes.
(cherry picked from commit f199bc6)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>

jo2y pushed a commit to jo2y/cpython that referenced this pull request

Mar 23, 2018
…ass derived classes (python#6147)

If a non-dataclass derives from a frozen dataclass, allow attributes to be set.
Require either all of the dataclasses in a class hierarchy to be frozen, or all non-frozen.
Store `@dataclass` parameters on the class object under `__dataclass_params__`. This is needed to detect frozen base classes.