from operator import truediv
from typing import Any

div = truediv

class Operators:
    def __and__(self, other): ...
    def __or__(self, other): ...
    def __invert__(self): ...
    def op(self, opstring, precedence: int = ..., is_comparison: bool = ..., return_type: Any | None = ...): ...
    def bool_op(self, opstring, precedence: int = ...): ...
    def operate(self, op, *other, **kwargs) -> None: ...
    def reverse_operate(self, op, other, **kwargs) -> None: ...

class custom_op:
    __name__: str
    opstring: Any
    precedence: Any
    is_comparison: Any
    natural_self_precedent: Any
    eager_grouping: Any
    return_type: Any
    def __init__(
        self,
        opstring,
        precedence: int = ...,
        is_comparison: bool = ...,
        return_type: Any | None = ...,
        natural_self_precedent: bool = ...,
        eager_grouping: bool = ...,
    ) -> None: ...
    def __eq__(self, other): ...
    def __hash__(self): ...
    def __call__(self, left, right, **kw): ...

class ColumnOperators(Operators):
    timetuple: Any
    def __lt__(self, other): ...
    def __le__(self, other): ...
    __hash__: Any
    def __eq__(self, other): ...
    def __ne__(self, other): ...
    def is_distinct_from(self, other): ...
    def is_not_distinct_from(self, other): ...
    isnot_distinct_from: Any
    def __gt__(self, other): ...
    def __ge__(self, other): ...
    def __neg__(self): ...
    def __contains__(self, other): ...
    def __getitem__(self, index): ...
    def __lshift__(self, other): ...
    def __rshift__(self, other): ...
    def concat(self, other): ...
    def like(self, other, escape: Any | None = ...): ...
    def ilike(self, other, escape: Any | None = ...): ...
    def in_(self, other): ...
    def not_in(self, other): ...
    notin_: Any
    def not_like(self, other, escape: Any | None = ...): ...
    notlike: Any
    def not_ilike(self, other, escape: Any | None = ...): ...
    notilike: Any
    def is_(self, other): ...
    def is_not(self, other): ...
    isnot: Any
    def startswith(self, other, **kwargs): ...
    def endswith(self, other, **kwargs): ...
    def contains(self, other, **kwargs): ...
    def match(self, other, **kwargs): ...
    def regexp_match(self, pattern, flags: Any | None = ...): ...
    def regexp_replace(self, pattern, replacement, flags: Any | None = ...): ...
    def desc(self): ...
    def asc(self): ...
    def nulls_first(self): ...
    nullsfirst: Any
    def nulls_last(self): ...
    nullslast: Any
    def collate(self, collation): ...
    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 any_(self): ...
    def all_(self): ...
    def __add__(self, other): ...
    def __sub__(self, other): ...
    def __mul__(self, other): ...
    def __div__(self, other): ...
    def __mod__(self, other): ...
    def __truediv__(self, other): ...
    def __rtruediv__(self, other): ...

def commutative_op(fn): ...
def comparison_op(fn): ...
def from_() -> None: ...
def function_as_comparison_op() -> None: ...
def as_() -> None: ...
def exists() -> None: ...
def is_true(a) -> None: ...

istrue = is_true

def is_false(a) -> None: ...

isfalse = is_false

def is_distinct_from(a, b): ...
def is_not_distinct_from(a, b): ...

isnot_distinct_from = is_not_distinct_from

def is_(a, b): ...
def is_not(a, b): ...

isnot = is_not

def collate(a, b): ...
def op(a, opstring, b): ...
def like_op(a, b, escape: Any | None = ...): ...
def not_like_op(a, b, escape: Any | None = ...): ...

notlike_op = not_like_op

def ilike_op(a, b, escape: Any | None = ...): ...
def not_ilike_op(a, b, escape: Any | None = ...): ...

notilike_op = not_ilike_op

def between_op(a, b, c, symmetric: bool = ...): ...
def not_between_op(a, b, c, symmetric: bool = ...): ...

notbetween_op = not_between_op

def in_op(a, b): ...
def not_in_op(a, b): ...

notin_op = not_in_op

def distinct_op(a): ...
def any_op(a): ...
def all_op(a): ...
def startswith_op(a, b, escape: Any | None = ..., autoescape: bool = ...): ...
def not_startswith_op(a, b, escape: Any | None = ..., autoescape: bool = ...): ...

notstartswith_op = not_startswith_op

def endswith_op(a, b, escape: Any | None = ..., autoescape: bool = ...): ...
def not_endswith_op(a, b, escape: Any | None = ..., autoescape: bool = ...): ...

notendswith_op = not_endswith_op

def contains_op(a, b, escape: Any | None = ..., autoescape: bool = ...): ...
def not_contains_op(a, b, escape: Any | None = ..., autoescape: bool = ...): ...

notcontains_op = not_contains_op

def match_op(a, b, **kw): ...
def regexp_match_op(a, b, flags: Any | None = ...): ...
def not_regexp_match_op(a, b, flags: Any | None = ...): ...
def regexp_replace_op(a, b, replacement, flags: Any | None = ...): ...
def not_match_op(a, b, **kw): ...

notmatch_op = not_match_op

def comma_op(a, b) -> None: ...
def filter_op(a, b) -> None: ...
def concat_op(a, b): ...
def desc_op(a): ...
def asc_op(a): ...
def nulls_first_op(a): ...

nullsfirst_op = nulls_first_op

def nulls_last_op(a): ...

nullslast_op = nulls_last_op

def json_getitem_op(a, b) -> None: ...
def json_path_getitem_op(a, b) -> None: ...
def is_comparison(op): ...
def is_commutative(op): ...
def is_ordering_modifier(op): ...
def is_natural_self_precedent(op): ...
def is_boolean(op): ...
def mirror(op): ...
def is_associative(op): ...
def is_precedent(operator, against): ...
