From: Arie Bovenberg Date: Tue, 1 Feb 2022 19:52:28 +0000 (+0100) Subject: add missing slots to three more classes X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70a9c4d46916b7c6907eb1d3ad4f7033ec964191;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add missing slots to three more classes --- diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index ae2f78ad3e..b9a5aaf518 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -760,6 +760,8 @@ class ORMOption(ExecutableOption): """ + __slots__ = () + _is_legacy_option = False propagate_to_loaders = False diff --git a/lib/sqlalchemy/sql/base.py b/lib/sqlalchemy/sql/base.py index 8ae8f8f65f..f4fe7afab2 100644 --- a/lib/sqlalchemy/sql/base.py +++ b/lib/sqlalchemy/sql/base.py @@ -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( diff --git a/lib/sqlalchemy/sql/visitors.py b/lib/sqlalchemy/sql/visitors.py index 04cd529fbd..640c07d618 100644 --- a/lib/sqlalchemy/sql/visitors.py +++ b/lib/sqlalchemy/sql/visitors.py @@ -508,6 +508,8 @@ class ExtendedInternalTraversal(InternalTraversal): """ + __slots__ = () + dp_ignore = symbol("IG") """Specify an object that should be ignored entirely.