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 some missing or incorrect types to peewee #12251

Merged
merged 11 commits into from
Jul 21, 2024
90 changes: 45 additions & 45 deletions stubs/peewee/peewee.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ class _HashableSource:
def __init__(self, *args, **kwargs) -> None: ...
def alias(self, name) -> None: ...
def __hash__(self) -> int: ...
def __eq__(self, other) -> bool: ...
def __ne__(self, other) -> bool: ...
__lt__: Incomplete
__le__: Incomplete
__gt__: Incomplete
__ge__: Incomplete
def __eq__(self, other) -> Expression | bool: ...
def __ne__(self, other) -> Expression | bool: ...
__lt__: Expression
dhorkel marked this conversation as resolved.
Show resolved Hide resolved
__le__: Expression
__gt__: Expression
__ge__: Expression

class BaseTable(Source):
__and__: Incomplete
Expand Down Expand Up @@ -237,46 +237,46 @@ class ColumnBase(Node):
def desc(self, collation: Incomplete | None = ..., nulls: Incomplete | None = ...): ...
__neg__: Incomplete
def __invert__(self): ...
__and__: Incomplete
__or__: Incomplete
__add__: Incomplete
__sub__: Incomplete
__mul__: Incomplete
__div__: Incomplete
__truediv__: Incomplete
__xor__: Incomplete
__radd__: Incomplete
__rsub__: Incomplete
__rmul__: Incomplete
__rdiv__: Incomplete
__rtruediv__: Incomplete
__rand__: Incomplete
__ror__: Incomplete
__rxor__: Incomplete
def __eq__(self, rhs) -> bool: ...
def __ne__(self, rhs) -> bool: ...
__lt__: Incomplete
__le__: Incomplete
__gt__: Incomplete
__ge__: Incomplete
__lshift__: Incomplete
__rshift__: Incomplete
__mod__: Incomplete
__pow__: Incomplete
like: Incomplete
ilike: Incomplete
bin_and: Incomplete
bin_or: Incomplete
in_: Incomplete
not_in: Incomplete
def is_null(self, is_null: bool = ...): ...
def contains(self, rhs): ...
def startswith(self, rhs): ...
def endswith(self, rhs): ...
def between(self, lo, hi): ...
__and__: Expression
__or__: Expression
__add__: Expression
__sub__: Expression
__mul__: Expression
__div__: Expression
__truediv__: Expression
__xor__: Expression
__radd__: Expression
__rsub__: Expression
__rmul__: Expression
__rdiv__: Expression
__rtruediv__: Expression
__rand__: Expression
__ror__: Expression
__rxor__: Expression
def __eq__(self, rhs) -> Expression: ...
def __ne__(self, rhs) -> Expression: ...
__lt__: Expression
__le__: Expression
__gt__: Expression
__ge__: Expression
__lshift__: Expression
__rshift__: Expression
__mod__: Expression
__pow__: Expression
like: Expression
ilike: Expression
bin_and: Expression
bin_or: Expression
in_: Expression
not_in: Expression
regexp: Expression
iregexp: Expression
def is_null(self, is_null: bool = ...) -> Expression: ...
def contains(self, rhs) -> Expression: ...
def startswith(self, rhs) -> Expression: ...
def endswith(self, rhs) -> Expression: ...
def between(self, lo, hi) -> Expression: ...
def concat(self, rhs): ...
def regexp(self, rhs): ...
def iregexp(self, rhs): ...
def __getitem__(self, item): ...
__iter__: Incomplete
def distinct(self): ...
Expand Down
Loading