diff --git a/sqlalchemy-stubs/sql/operators.pyi b/sqlalchemy-stubs/sql/operators.pyi index 89a08e1..34112e6 100644 --- a/sqlalchemy-stubs/sql/operators.pyi +++ b/sqlalchemy-stubs/sql/operators.pyi @@ -1,6 +1,6 @@ from typing import Any, Iterable, Optional, Text, Union -from .selectable import Select, Alias -from .elements import BindParameter, UnaryExpression +from .selectable import Select as Select, Alias +from .elements import BindParameter as BindParameter, UnaryExpression, BinaryExpression class Operators(object): def __and__(self, other): ... @@ -46,24 +46,24 @@ class ColumnOperators(Operators): def notin_(self, other: Union[Iterable[Any], BindParameter, Select, Alias]): ... def notlike(self, other, escape: Optional[Any] = ...): ... def notilike(self, other, escape: Optional[Any] = ...): ... - def is_(self, other): ... - def isnot(self, other): ... - def startswith(self, other: str, **kwargs): ... - def endswith(self, other, **kwargs): ... - def contains(self, other, **kwargs): ... + def is_(self, other: Optional[bool]) -> BinaryExpression: ... + def isnot(self, other: Optional[bool]) -> BinaryExpression: ... + def startswith(self, other: str, **kwargs) -> BinaryExpression: ... + def endswith(self, other: str, **kwargs) -> BinaryExpression: ... + def contains(self, other, **kwargs) -> BinaryExpression: ... def match(self, other, **kwargs): ... def desc(self) -> UnaryExpression: ... def asc(self) -> UnaryExpression: ... - def nullsfirst(self): ... - def nullslast(self): ... - def collate(self, collation): ... + def nullsfirst(self) -> UnaryExpression: ... + def nullslast(self) -> UnaryExpression: ... + def collate(self, collation) -> BinaryExpression: ... def __radd__(self, other): ... def __rsub__(self, other): ... def __rmul__(self, other): ... def __rdiv__(self, other): ... def __rmod__(self, other): ... def between(self, cleft, cright, symmetric: bool = ...): ... - def distinct(self): ... + def distinct(self) -> UnaryExpression: ... def any_(self): ... def all_(self): ... def __add__(self, other): ...