]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove unused slots from ORMOption, add empty slots to PostLoader
authorArie Bovenberg <a.c.bovenberg@gmail.com>
Thu, 20 Jan 2022 19:51:19 +0000 (20:51 +0100)
committerArie Bovenberg <a.c.bovenberg@gmail.com>
Tue, 1 Feb 2022 19:26:12 +0000 (20:26 +0100)
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/strategies.py

index b9a5aaf518ad5c53eab046042f99956a1ba1d8b4..ae2f78ad3ec83fd7a7f6bd37a0bb995785a704d9 100644 (file)
@@ -760,8 +760,6 @@ class ORMOption(ExecutableOption):
 
     """
 
-    __slots__ = ()
-
     _is_legacy_option = False
 
     propagate_to_loaders = False
index beaf649b785bea708d3e13ba4aa44de092c43060..07e71d4c0b7da058674700a3b16f38dd6ca05baa 100644 (file)
@@ -1165,6 +1165,8 @@ class LoadLazyAttribute:
 class PostLoader(AbstractRelationshipLoader):
     """A relationship loader that emits a second SELECT statement."""
 
+    __slots__ = ()
+
     def _check_recursive_postload(self, context, path, join_depth=None):
         effective_path = (
             context.compile_state.current_path or orm_util.PathRegistry.root