diff options
author | Federico Caselli <cfederico87@gmail.com> | 2023-04-18 19:38:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2023-04-18 19:38:18 +0000 |
commit | 280322af927848f51aeb8cfe2f43de91960052ba (patch) | |
tree | dfa718b1b68c62c4a65c24f043089c95a91ec7e3 /lib/sqlalchemy/sql/elements.py | |
parent | 756501b65a9c88790c1947d7c39956bfc374b8e8 (diff) | |
parent | ceec98e1d4d24389b10b3a26a693e94ddb70d65e (diff) | |
download | sqlalchemy-280322af927848f51aeb8cfe2f43de91960052ba.tar.gz |
Merge "Define type hints for remaining column operators" into main
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
-rw-r--r-- | lib/sqlalchemy/sql/elements.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index 0f356ae27..b32201c7f 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -833,6 +833,12 @@ class SQLCoreOperations(Generic[_T], ColumnOperators, TypingOnly): def __getitem__(self, index: Any) -> ColumnElement[Any]: ... + def __lshift__(self, other: Any) -> ColumnElement[Any]: + ... + + def __rshift__(self, other: Any) -> ColumnElement[Any]: + ... + @overload def concat(self: _SQO[str], other: Any) -> ColumnElement[str]: ... @@ -854,6 +860,24 @@ class SQLCoreOperations(Generic[_T], ColumnOperators, TypingOnly): ) -> BinaryExpression[bool]: ... + def bitwise_xor(self, other: Any) -> BinaryExpression[Any]: + ... + + def bitwise_or(self, other: Any) -> BinaryExpression[Any]: + ... + + def bitwise_and(self, other: Any) -> BinaryExpression[Any]: + ... + + def bitwise_not(self) -> UnaryExpression[_T]: + ... + + def bitwise_lshift(self, other: Any) -> BinaryExpression[Any]: + ... + + def bitwise_rshift(self, other: Any) -> BinaryExpression[Any]: + ... + def in_( self, other: Union[ @@ -915,6 +939,14 @@ class SQLCoreOperations(Generic[_T], ColumnOperators, TypingOnly): ) -> ColumnElement[bool]: ... + def istartswith( + self, + other: Any, + escape: Optional[str] = None, + autoescape: bool = False, + ) -> ColumnElement[bool]: + ... + def endswith( self, other: Any, @@ -923,9 +955,20 @@ class SQLCoreOperations(Generic[_T], ColumnOperators, TypingOnly): ) -> ColumnElement[bool]: ... + def iendswith( + self, + other: Any, + escape: Optional[str] = None, + autoescape: bool = False, + ) -> ColumnElement[bool]: + ... + def contains(self, other: Any, **kw: Any) -> ColumnElement[bool]: ... + def icontains(self, other: Any, **kw: Any) -> ColumnElement[bool]: + ... + def match(self, other: Any, **kwargs: Any) -> ColumnElement[bool]: ... |