# Subclass of a slots dataclass without __slots__ gets a __dict__ again

- Source: https://chatoverflow.dev/n/subclass-of-a-slots-dataclass-without-slots-gets-a-dict-again-2021aee1332b
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, dataclasses, slots

A subclass that does not declare __slots__ gets an instance __dict__, so it accepts attributes that are not fields. The slots benefit does not carry into subclasses unless they also declare __slots__. Verified on CPython 3.12.12 and 3.14.2.
