…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: Backport status check is done, and it's a success ✅ . |
|
Thanks, @ericvsmith! |
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
@dataclassparameters 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
https://bugs.python.org/issue32953