]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Adjust create_proxy_methods() to use kw arguments
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Jun 2021 13:37:27 +0000 (09:37 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Jun 2021 14:31:57 +0000 (10:31 -0400)
commitdd5d6d15467b66398dd328ff43b863a057899291
treec6b381208b1ba64d1b41763bccee1bde0e50ce3d
parent52effe545fafe80570663d9c462166302efae082
Adjust create_proxy_methods() to use kw arguments

Adjusted the means by which classes such as :class:`_orm.scoped_session`
and :class:`_asyncio.AsyncSession` are generated from the base
:class:`_orm.Session` class, such that custom :class:`_orm.Session`
subclasses such as that used by Flask-SQLAlchemy don't need to implement
positional arguments when they call into the superclass method, and can
continue using the same argument styles as in previous releases.

Fixes: #6285
References: https://github.com/pallets/flask-sqlalchemy/issues/953
Change-Id: I8612ab33743625e70eb158efceb0636d783c92a5
doc/build/changelog/unreleased_14/6285.rst [new file with mode: 0644]
lib/sqlalchemy/util/langhelpers.py
test/base/test_utils.py
test/orm/test_scoping.py