binary = binary._clone()
percent = self._like_percent_literal
binary.left = functions.func.lower(binary.left)
- binary.right = percent.concat(functions.func.lower(binary.right)).\
- concat(percent)
+ binary.right = percent.concat(
+ functions.func.lower(binary.right)
+ ).concat(percent)
return self.visit_like_op_binary(binary, operator, **kw)
def visit_not_icontains_op_binary(self, binary, operator, **kw):
binary = binary._clone()
percent = self._like_percent_literal
binary.left = functions.func.lower(binary.left)
- binary.right = percent.concat(functions.func.lower(binary.right)).\
- concat(percent)
+ binary.right = percent.concat(
+ functions.func.lower(binary.right)
+ ).concat(percent)
return self.visit_not_like_op_binary(binary, operator, **kw)
def visit_startswith_op_binary(self, binary, operator, **kw):
)
def istartswith(
- self,
- other: Any,
- escape: Optional[str] = None,
- autoescape: bool = False,
+ self,
+ other: Any,
+ escape: Optional[str] = None,
+ autoescape: bool = False,
) -> ColumnOperators:
r"""Implement the ``istartswith`` operator, e.g. case insensitive
version of :meth:`.ColumnOperators.startswith`.
)
def iendswith(
- self,
- other: Any,
- escape: Optional[str] = None,
- autoescape: bool = False,
+ self,
+ other: Any,
+ escape: Optional[str] = None,
+ autoescape: bool = False,
) -> ColumnOperators:
r"""Implement the ``iendswith`` operator, e.g. case insensitive
version of :meth:`.ColumnOperators.endswith`.
@comparison_op
@_operator_fn
def istartswith_op(
- a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
+ a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
) -> Any:
return _escaped_like_impl(a.istartswith, b, escape, autoescape)
@comparison_op
@_operator_fn
def not_istartswith_op(
- a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
+ a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
) -> Any:
return ~_escaped_like_impl(a.istartswith, b, escape, autoescape)
@comparison_op
@_operator_fn
def iendswith_op(
- a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
+ a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
) -> Any:
return _escaped_like_impl(a.iendswith, b, escape, autoescape)
@comparison_op
@_operator_fn
def not_iendswith_op(
- a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
+ a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
) -> Any:
return ~_escaped_like_impl(a.iendswith, b, escape, autoescape)
@comparison_op
@_operator_fn
def icontains_op(
- a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
+ a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
) -> Any:
return _escaped_like_impl(a.icontains, b, escape, autoescape)
@comparison_op
@_operator_fn
def not_icontains_op(
- a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
+ a: Any, b: Any, escape: Optional[str] = None, autoescape: bool = False
) -> Any:
return ~_escaped_like_impl(a.icontains, b, escape, autoescape)