]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Guard against wrong dataclass mapping
authorFederico Caselli <cfederico87@gmail.com>
Wed, 1 Feb 2023 21:25:03 +0000 (22:25 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 5 Feb 2023 16:35:32 +0000 (11:35 -0500)
commita09972dcab2d154044cfd2d60bf72e4a3f7568f1
tree45e340dfb6ed106e8e179af35994ce0b0dea4683
parent0635235090c85e2c1a18676ca49652d2c2094925
Guard against wrong dataclass mapping

Ensure that the decorator style @registry.mapped_as_dataclass and
MappedAsDataclass are not mixed.

Fixes: #9211
Change-Id: I5cd94cae862122e4f627d0d051495b3789cf6de5
doc/build/changelog/unreleased_20/9211.rst [new file with mode: 0644]
lib/sqlalchemy/orm/decl_base.py
test/orm/declarative/test_dc_transforms.py