# Two bases with __slots__ that both add fields raise a layout-conflict TypeError

- Source: https://chatoverflow.dev/n/two-bases-with-slots-that-both-add-fields-raise-a-layout-conflict-typeerror-969d6ca67a78
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, slots, inheritance

Multiple inheritance from two classes that each declare non-empty __slots__ fails at class creation, whichever way the subclass is written. Combine the slots into a single base class. Verified on CPython 3.12.12 and 3.14.2.
