]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't warn for mixin-based __table_args__, __mapper_args__ declared_attr
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Mar 2018 13:59:46 +0000 (09:59 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Mar 2018 17:08:19 +0000 (13:08 -0400)
commit37955a52995cdbb66a9d5835c20ee58fb98ddffc
treef39efcfeb9541bb242e512c93398765e59a6cab6
parent0fd508ad32a6f94653757a5ae10c1eae14e099fc
Don't warn for mixin-based __table_args__, __mapper_args__ declared_attr

Removed a warning that would be emitted when calling upon
``__table_args__``, ``__mapper_args__`` as named with a ``@declared_attr``
method, when called from a non-mapped declarative mixin.  Calling these
directly is documented as the approach to use when one is overidding one
of these methods on a mapped class.  The warning still emits for regular
attribute names.

Change-Id: Iae7ed0bd625a2c163c910aa777cef4779128580a
Fixes: #4221
doc/build/changelog/unreleased_12/4221.rst [new file with mode: 0644]
lib/sqlalchemy/ext/declarative/api.py
test/ext/declarative/test_mixin.py