) -> 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,
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:
...
from typing import Optional
from typing import Set
from typing import Type
+from typing import TYPE_CHECKING
from typing import TypeVar
from typing import Union
return self.operate(is_not_distinct_from, other)
# deprecated 1.4; see #5435
- isnot_distinct_from = is_not_distinct_from
+ if TYPE_CHECKING:
+
+ def isnot_distinct_from(self, other: Any) -> ColumnOperators:
+ ...
+
+ else:
+ isnot_distinct_from = is_not_distinct_from
def __gt__(self, other: Any) -> ColumnOperators:
"""Implement the ``>`` operator.
return self.operate(not_in_op, other)
# deprecated 1.4; see #5429
- notin_ = not_in
+ if TYPE_CHECKING:
+
+ def notin_(self, other: Any) -> ColumnOperators:
+ ...
+
+ else:
+ notin_ = not_in
def not_like(
self, other: Any, escape: Optional[str] = None
:meth:`.ColumnOperators.like`
"""
- return self.operate(notlike_op, other, escape=escape)
+ return self.operate(not_like_op, other, escape=escape)
# deprecated 1.4; see #5435
- notlike = not_like
+ if TYPE_CHECKING:
+
+ def notlike(
+ self, other: Any, escape: Optional[str] = None
+ ) -> ColumnOperators:
+ ...
+
+ else:
+ notlike = not_like
def not_ilike(
self, other: Any, escape: Optional[str] = None
:meth:`.ColumnOperators.ilike`
"""
- return self.operate(notilike_op, other, escape=escape)
+ return self.operate(not_ilike_op, other, escape=escape)
# deprecated 1.4; see #5435
- notilike = not_ilike
+ if TYPE_CHECKING:
+
+ def notilike(
+ self, other: Any, escape: Optional[str] = None
+ ) -> ColumnOperators:
+ ...
+
+ else:
+ notilike = not_ilike
def is_(self, other: Any) -> ColumnOperators:
"""Implement the ``IS`` operator.
return self.operate(is_not, other)
# deprecated 1.4; see #5429
- isnot = is_not
+ if TYPE_CHECKING:
+
+ def isnot(self, other: Any) -> ColumnOperators:
+ ...
+
+ else:
+ isnot = is_not
def startswith(
self,
return self.operate(nulls_first_op)
# deprecated 1.4; see #5435
- nullsfirst = nulls_first
+ if TYPE_CHECKING:
+
+ def nullsfirst(self) -> ColumnOperators:
+ ...
+
+ else:
+ nullsfirst = nulls_first
def nulls_last(self) -> ColumnOperators:
"""Produce a :func:`_expression.nulls_last` clause against the
return self.operate(nulls_last_op)
# deprecated 1.4; see #5429
- nullslast = nulls_last
+ if TYPE_CHECKING:
+
+ def nullslast(self) -> ColumnOperators:
+ ...
+
+ else:
+ nullslast = nulls_last
def collate(self, collation: str) -> ColumnOperators:
"""Produce a :func:`_expression.collate` clause against
# 1.4 deprecated; see #5435
-istrue = is_true
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def istrue(a: Any) -> Any:
+ ...
+
+else:
+ istrue = is_true
@_operator_fn
# 1.4 deprecated; see #5435
-isfalse = is_false
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def isfalse(a: Any) -> Any:
+ ...
+
+else:
+ isfalse = is_false
@comparison_op
# deprecated 1.4; see #5435
-isnot_distinct_from = is_not_distinct_from
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def isnot_distinct_from(a: Any, b: Any) -> Any:
+ ...
+
+else:
+ isnot_distinct_from = is_not_distinct_from
@comparison_op
# 1.4 deprecated; see #5429
-isnot = is_not
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def isnot(a: Any, b: Any) -> Any:
+ ...
+
+else:
+ isnot = is_not
@_operator_fn
# 1.4 deprecated; see #5435
-notlike_op = not_like_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def notlike_op(a: Any, b: Any, escape: Optional[str] = None) -> Any:
+ ...
+
+else:
+ notlike_op = not_like_op
@comparison_op
# 1.4 deprecated; see #5435
-notilike_op = not_ilike_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def notilike_op(a: Any, b: Any, escape: Optional[str] = None) -> Any:
+ ...
+
+else:
+ notilike_op = not_ilike_op
@comparison_op
# 1.4 deprecated; see #5435
-notbetween_op = not_between_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def notbetween_op(a: Any, b: Any, c: Any, symmetric: bool = False) -> Any:
+ ...
+
+else:
+ notbetween_op = not_between_op
@comparison_op
# 1.4 deprecated; see #5429
-notin_op = not_in_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def notin_op(a: Any, b: Any) -> Any:
+ ...
+
+else:
+ notin_op = not_in_op
@_operator_fn
# 1.4 deprecated; see #5435
-notstartswith_op = not_startswith_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def notstartswith_op(
+ a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
+ ) -> Any:
+ ...
+
+else:
+ notstartswith_op = not_startswith_op
@comparison_op
# 1.4 deprecated; see #5435
-notendswith_op = not_endswith_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def notendswith_op(
+ a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
+ ) -> Any:
+ ...
+
+else:
+ notendswith_op = not_endswith_op
@comparison_op
# 1.4 deprecated; see #5435
-notcontains_op = not_contains_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def notcontains_op(
+ a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
+ ) -> Any:
+ ...
+
+else:
+ notcontains_op = not_contains_op
@comparison_op
# 1.4 deprecated; see #5429
-notmatch_op = not_match_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def notmatch_op(a: Any, b: Any, **kw: Any) -> Any:
+ ...
+
+else:
+ notmatch_op = not_match_op
@_operator_fn
# 1.4 deprecated; see #5435
-nullsfirst_op = nulls_first_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def nullsfirst_op(a: Any) -> Any:
+ ...
+
+else:
+ nullsfirst_op = nulls_first_op
@_operator_fn
# 1.4 deprecated; see #5435
-nullslast_op = nulls_last_op
+if TYPE_CHECKING:
+
+ @_operator_fn
+ def nullslast_op(a: Any) -> Any:
+ ...
+
+else:
+ nullslast_op = nulls_last_op
@_operator_fn