]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove **kw from AsyncSession.begin() / AsyncSession.begin_nested()
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Feb 2022 14:01:56 +0000 (09:01 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Feb 2022 14:01:56 +0000 (09:01 -0500)
Removed the unused ``**kw`` arguments from
:class:`_asyncio.AsyncSession.begin` and
:class:`_asyncio.AsyncSession.begin_nested`. These kw aren't used and
appear to have been added to the API in error.

Fixes: #7703
Change-Id: I39ff3850929d83e6efeb7f284f2f4d5e4ca120b1

doc/build/changelog/unreleased_20/7703.rst [new file with mode: 0644]
lib/sqlalchemy/ext/asyncio/session.py

diff --git a/doc/build/changelog/unreleased_20/7703.rst b/doc/build/changelog/unreleased_20/7703.rst
new file mode 100644 (file)
index 0000000..937a553
--- /dev/null
@@ -0,0 +1,8 @@
+.. change::
+    :tags: bug, orm, asyncio
+    :tickets: 7703
+
+    Removed the unused ``**kw`` arguments from
+    :class:`_asyncio.AsyncSession.begin` and
+    :class:`_asyncio.AsyncSession.begin_nested`. These kw aren't used and
+    appear to have been added to the API in error.
index 22de2cab136eb2b38ace733fbb8070e54d96b3ca..18b38ee0a0abc357395ab13dd323fb97aa312a4f 100644 (file)
@@ -533,7 +533,7 @@ class AsyncSession(ReversibleProxy):
             sync_connection
         )
 
-    def begin(self, **kw):
+    def begin(self):
         """Return an :class:`_asyncio.AsyncSessionTransaction` object.
 
         The underlying :class:`_orm.Session` will perform the
@@ -556,7 +556,7 @@ class AsyncSession(ReversibleProxy):
 
         return AsyncSessionTransaction(self)
 
-    def begin_nested(self, **kw):
+    def begin_nested(self):
         """Return an :class:`_asyncio.AsyncSessionTransaction` object
         which will begin a "nested" transaction, e.g. SAVEPOINT.