]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add **kw support to DeclarativeMeta.__init__
authorEwenGillies <elg112@ic.ac.uk>
Sun, 5 Jul 2020 14:50:50 +0000 (10:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 6 Jul 2020 20:46:33 +0000 (16:46 -0400)
commit664cefb276860e9c33004e7b47816575f52012aa
tree493a3833889b87422a4f6cf3e08d22af632091f1
parentc8c52a3436f1a10599a651b8b0f55ca26cc05773
Add **kw support to DeclarativeMeta.__init__

Added a ``**kw`` argument to the :meth:`.DeclarativeMeta.__init__` method.
This allows a class to support the :pep:`487` metaclass hook
``__init_subclass__``.  Pull request courtesy Ewen Gillies.

Fixes: #5357
Closes: #5363
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5363
Pull-request-sha: 0ad05a768316cba03a4d312ab39d3e8fbca7ac54

Change-Id: I1654befe9eb1c8b8e7fc0784bdbe64284614f0ea
(cherry picked from commit 67504137e96547664754691bdd3269b473a488d1)
doc/build/changelog/unreleased_13/5357.rst [new file with mode: 0644]
lib/sqlalchemy/ext/declarative/api.py
test/ext/declarative/test_basic.py