]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add missing slots to three more classes 7589/head
authorArie Bovenberg <a.c.bovenberg@gmail.com>
Tue, 1 Feb 2022 19:52:28 +0000 (20:52 +0100)
committerArie Bovenberg <a.c.bovenberg@gmail.com>
Tue, 1 Feb 2022 19:52:28 +0000 (20:52 +0100)
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/sql/base.py
lib/sqlalchemy/sql/visitors.py

index ae2f78ad3ec83fd7a7f6bd37a0bb995785a704d9..b9a5aaf518ad5c53eab046042f99956a1ba1d8b4 100644 (file)
@@ -760,6 +760,8 @@ class ORMOption(ExecutableOption):
 
     """
 
+    __slots__ = ()
+
     _is_legacy_option = False
 
     propagate_to_loaders = False
index 8ae8f8f65fcbc8ce88f41865aa0884edacc97580..f4fe7afab27c241c068e225c9c215edbdc87119e 100644 (file)
@@ -639,6 +639,8 @@ class _MetaOptions(type):
 class Options(metaclass=_MetaOptions):
     """A cacheable option dictionary with defaults."""
 
+    __slots__ = ()
+
     def __init_subclass__(cls) -> None:
         dict_ = cls.__dict__
         cls._cache_attrs = tuple(
index 04cd529fbd9c5f3b48dd1ddb590554244b909f55..640c07d6182dce4d5ff3559cd18a14153e2ae194 100644 (file)
@@ -508,6 +508,8 @@ class ExtendedInternalTraversal(InternalTraversal):
 
     """
 
+    __slots__ = ()
+
     dp_ignore = symbol("IG")
     """Specify an object that should be ignored entirely.