]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add empty slots to three more base classes
authorArie Bovenberg <a.c.bovenberg@gmail.com>
Fri, 21 Jan 2022 16:02:50 +0000 (17:02 +0100)
committerArie Bovenberg <a.c.bovenberg@gmail.com>
Tue, 1 Feb 2022 19:26:12 +0000 (20:26 +0100)
lib/sqlalchemy/sql/operators.py
lib/sqlalchemy/sql/visitors.py

index cf61f263768730cab833650f27859c30cc14b12d..255e77b7f975364d645a61fdbe996c2b9d3a5dc3 100644 (file)
@@ -57,6 +57,8 @@ _T = TypeVar("_T", bound=Any)
 class OperatorType(Protocol):
     """describe an op() function."""
 
+    __slots__ = ()
+
     __name__: str
 
     def __call__(
index 78384782b80c17e83c55125fed35ecccfcb3d6ee..04cd529fbd9c5f3b48dd1ddb590554244b909f55 100644 (file)
@@ -184,6 +184,8 @@ class _HasTraversalDispatch:
 
     """
 
+    __slots__ = ()
+
     def __init_subclass__(cls) -> None:
         cls._generate_traversal_dispatch()
         super().__init_subclass__()
@@ -299,6 +301,8 @@ class InternalTraversal(_HasTraversalDispatch):
 
     """
 
+    __slots__ = ()
+
     dp_has_cache_key = symbol("HC")
     """Visit a :class:`.HasCacheKey` object."""