]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
skip anno-only mixin columns that are overridden on subclasses
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 30 Mar 2023 13:00:49 +0000 (09:00 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 30 Mar 2023 13:00:49 +0000 (09:00 -0400)
commitb4c1f29413f678c43d03afdaedd18bd18b23d59a
tree1fd4c4f55f7bc4a03f1d5f0f7cbfe9b10081a4a6
parent41e4fdb08722ec9843663500c6121e18c1bb0016
skip anno-only mixin columns that are overridden on subclasses

Fixed issue where an annotation-only :class:`_orm.Mapped` directive could
not be used in a Declarative mixin class, without that attribute attempting
to take effect for single- or joined-inheritance subclasses of mapped
classes that had already mapped that attribute on a superclass, producing
conflicting column errors and/or warnings.

Fixes: #9564
Change-Id: I0f92be2ae98a8c45afce3e06d0a7cc61c19a96f4
doc/build/changelog/unreleased_20/9564.rst [new file with mode: 0644]
lib/sqlalchemy/orm/decl_base.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py