]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure inherited mapper attrs not interpreted as plain dataclass fields
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Oct 2022 17:27:21 +0000 (13:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Oct 2022 18:31:28 +0000 (14:31 -0400)
commit73be84ae46473703dcf7b8d39e9666496fb07c8f
tree28740ff53f1efc30c5273d867f5e377f40a69390
parent811979150cd9f1aed3d6de6938b84179b2092b89
ensure inherited mapper attrs not interpreted as plain dataclass fields

Fixed issue in new dataclass mapping feature where a column declared on the
decalrative base / abstract base / mixin would leak into the constructor
for an inheriting subclass under some circumstances.

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