]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add empty slots to two base classes
authorArie Bovenberg <a.c.bovenberg@gmail.com>
Fri, 21 Jan 2022 15:25:55 +0000 (16:25 +0100)
committerArie Bovenberg <a.c.bovenberg@gmail.com>
Tue, 1 Feb 2022 19:26:12 +0000 (20:26 +0100)
lib/sqlalchemy/cyextension/immutabledict.pyx
lib/sqlalchemy/orm/unitofwork.py

index d07c81bd49031abb0efc5a0e12cf983dc3b35011..861e7574da12cb3d7d74242bc07668b0bfb420e5 100644 (file)
@@ -6,6 +6,9 @@ def _immutable_fn(obj):
 
 
 class ImmutableContainer:
+
+    __slots__ = ()
+
     def _immutable(self, *a,**kw):
         _immutable_fn(self)
 
index e6cf3ad6b5d60027ca43bddd166564a44a45174c..b478f427cc9e203e9edb9812ef12ea645a5e1f54 100644 (file)
@@ -456,6 +456,9 @@ class UOWTransaction:
 
 
 class IterateMappersMixin:
+
+    __slots__ = ()
+
     def _mappers(self, uow):
         if self.fromparent:
             return iter(