Mapping Python Classes — SQLAlchemy 1.4 Documentation
docs.sqlalchemy.org › en › latestDec 22, 2021 · When attributes are defined using dataclasses, the @dataclass decorator consumes them but leaves them in place on the class. SQLAlchemy’s mapping process, when it encounters an attribute that normally is to be mapped to a Column, checks explicitly if the attribute is part of a Dataclasses setup, and if so will replace the class-bound dataclass attribute with its usual mapped properties.