]> 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:43:06 +0000 (16:43 -0400)
commit67504137e96547664754691bdd3269b473a488d1
treed414055cef167422f17a29a86a076c65dce7516e
parent9204b6610c9667ba2e4f73440339d2f520631777
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
doc/build/changelog/unreleased_13/5357.rst [new file with mode: 0644]
lib/sqlalchemy/ext/declarative/api.py
test/ext/declarative/test_basic.py