]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
allow weakref to TransactionContext classes
authorArie Bovenberg <a.c.bovenberg@gmail.com>
Mon, 31 Jan 2022 20:34:10 +0000 (21:34 +0100)
committerArie Bovenberg <a.c.bovenberg@gmail.com>
Tue, 1 Feb 2022 19:26:12 +0000 (20:26 +0100)
lib/sqlalchemy/engine/util.py

index 6aadd5c5fe169f1964d17626eebcb848d9ce6193..32b59e8e604c685e15c16d022e33e3b1c8be99d9 100644 (file)
@@ -43,7 +43,7 @@ class TransactionalContext:
 
     """
 
-    __slots__ = ("_outer_trans_ctx", "_trans_subject")
+    __slots__ = ("_outer_trans_ctx", "_trans_subject", "__weakref__")
 
     def _transaction_is_active(self):
         raise NotImplementedError()