]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove async session slots
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 31 Aug 2021 20:41:58 +0000 (16:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Sep 2021 13:23:48 +0000 (09:23 -0400)
1798c3cf1c added __slots__ to the base which then
caused af0824fd79 to fail.  as we can't use an assignable
class variable with slots, remove slots from AsyncSession
which is how this class was working anyway.

Fixes: #6967
Change-Id: I4e0adab923db8e77cf748a8728e253258838e8f1

lib/sqlalchemy/ext/asyncio/session.py

index 5c5426d7201f11f418299396266a05076dbe6732..a62c7177cc47296821878cef2b30a214f772aac1 100644 (file)
@@ -65,14 +65,6 @@ class AsyncSession(ReversibleProxy):
 
     _is_asyncio = True
 
-    __slots__ = (
-        "binds",
-        "bind",
-        "sync_session",
-        "_proxied",
-        "_slots_dispatch",
-    )
-
     dispatch = None
 
     def __init__(self, bind=None, binds=None, sync_session_class=None, **kw):