diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-01-26 08:52:01 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-01-26 13:42:15 -0500 |
commit | c06ef9745f34524169cb66335f0b0a86137bdb39 (patch) | |
tree | 79d86967b99861de75b6dacfb354d171eedca54e /lib/sqlalchemy/sql/elements.py | |
parent | 19cbf8038f4a9e8e0820bcfeb6b65bf5bc873d39 (diff) | |
download | sqlalchemy-c06ef9745f34524169cb66335f0b0a86137bdb39.tar.gz |
add typing to legacy operators
Added typing to legacy operators such as ``isnot()``, ``notin_()``, etc.
which previously were referencing the newer operators but were not
themselves typed.
Fixes: #9148
Change-Id: I3ad7d75d89ec13c9f45063033ecff69d610c72ca
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
-rw-r--r-- | lib/sqlalchemy/sql/elements.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index 05bc4ae89..71d8cb2d3 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -876,22 +876,43 @@ class SQLCoreOperations(Generic[_T], ColumnOperators, TypingOnly): ) -> BinaryExpression[bool]: ... + def notin_( + self, + other: Union[ + Iterable[Any], BindParameter[Any], roles.InElementRole + ], + ) -> BinaryExpression[bool]: + ... + def not_like( self, other: Any, escape: Optional[str] = None ) -> BinaryExpression[bool]: ... + def notlike( + self, other: Any, escape: Optional[str] = None + ) -> BinaryExpression[bool]: + ... + def not_ilike( self, other: Any, escape: Optional[str] = None ) -> BinaryExpression[bool]: ... + def notilike( + self, other: Any, escape: Optional[str] = None + ) -> BinaryExpression[bool]: + ... + def is_(self, other: Any) -> BinaryExpression[bool]: ... def is_not(self, other: Any) -> BinaryExpression[bool]: ... + def isnot(self, other: Any) -> BinaryExpression[bool]: + ... + def startswith( self, other: Any, @@ -933,9 +954,15 @@ class SQLCoreOperations(Generic[_T], ColumnOperators, TypingOnly): def nulls_first(self) -> UnaryExpression[_T]: ... + def nullsfirst(self) -> UnaryExpression[_T]: + ... + def nulls_last(self) -> UnaryExpression[_T]: ... + def nullslast(self) -> UnaryExpression[_T]: + ... + def collate(self, collation: str) -> CollationClause: ... |