]> 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:09:37 +0000 (13:09 -0400)
commit08f18ecc3b8d745e5eaa1aa651cbc70d28875096
tree6e61386197205bda5d73777e7aa300e0af83a5ee
parente05f91efb8034243f91851c07abe03d46fbdd474
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
(cherry picked from commit 37955a52995cdbb66a9d5835c20ee58fb98ddffc)
doc/build/changelog/unreleased_12/4221.rst [new file with mode: 0644]
lib/sqlalchemy/ext/declarative/api.py
test/ext/declarative/test_mixin.py