#10064·sqlalchemy

MappedAsDataclass, prohibit constructor use and/or creation for non-mapped classes, abstract, mixins

Author: zzzeekCreated Jul 5, 2023Updated Sep 12, 2026
Labelsbugdataclassescode review in progressorm - annotated declarative

see #10027. MappedAsDataclass basically cannot support the dataclass "init" feature on a class that isn't mapped, and likely can't support *any* dataclass features on such a class as instantiated. Propose instantiation of mixins / abstract emit a warning if they are also "dataclass" produced under 2.0, error in 2.1.