]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
include declared_directive as a declared_attr
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Apr 2023 14:28:44 +0000 (10:28 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Apr 2023 14:33:09 +0000 (10:33 -0400)
commitbf51ff3248d1c87cbc7a846e2e6886339d59b9cb
treef00471bbd6e497de058c6064ac2cdd74dd1d8014
parent1eb72d9725d0df60206151805c927ad3c6566fb7
include declared_directive as a declared_attr

Fixed issue where the :meth:`_orm.declared_attr.directive` modifier was not
correctly honored for subclasses when applied to the ``__mapper_args__``
special method name, as opposed to direct use of
:class:`_orm.declared_attr`. The two constructs should have identical
runtime behaviors.

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