Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add types for column operators #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions sqlalchemy-stubs/sql/operators.pyi
Original file line number Diff line number Diff line change
@@ -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): ...
Expand Down Expand Up @@ -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): ...
Expand Down