[peewee] Fix type for field operations (#14275)

This commit is contained in:
Vitali Falileev
2025-07-07 16:18:57 +04:00
committed by GitHub
parent 4ceebbcd24
commit e91e2fd47a
+27 -27
View File
@@ -241,36 +241,36 @@ class ColumnBase(Node):
__or__: Incomplete
def __add__(self, rhs: Any) -> Expression: ...
__sub__: Incomplete
__mul__: Callable[[Self, Any], Expression]
__div__: Callable[[Self, Any], Expression]
__truediv__: Callable[[Self, Any], Expression]
__xor__: Callable[[Self, Any], Expression]
__mul__: ClassVar[Callable[[Self, Any], Expression]]
__div__: ClassVar[Callable[[Self, Any], Expression]]
__truediv__: ClassVar[Callable[[Self, Any], Expression]]
__xor__: ClassVar[Callable[[Self, Any], Expression]]
def __radd__(self, rhs: Any) -> Expression: ...
__rsub__: Callable[[Self, Any], Expression]
__rmul__: Callable[[Self, Any], Expression]
__rdiv__: Callable[[Self, Any], Expression]
__rtruediv__: Callable[[Self, Any], Expression]
__rand__: Callable[[Self, Any], Expression]
__ror__: Callable[[Self, Any], Expression]
__rxor__: Callable[[Self, Any], Expression]
__rsub__: ClassVar[Callable[[Self, Any], Expression]]
__rmul__: ClassVar[Callable[[Self, Any], Expression]]
__rdiv__: ClassVar[Callable[[Self, Any], Expression]]
__rtruediv__: ClassVar[Callable[[Self, Any], Expression]]
__rand__: ClassVar[Callable[[Self, Any], Expression]]
__ror__: ClassVar[Callable[[Self, Any], Expression]]
__rxor__: ClassVar[Callable[[Self, Any], Expression]]
def __eq__(self, rhs) -> Expression: ... # type: ignore[override]
def __ne__(self, rhs) -> Expression: ... # type: ignore[override]
__lt__: Callable[[Self, Any], Expression]
__le__: Callable[[Self, Any], Expression]
__gt__: Callable[[Self, Any], Expression]
__ge__: Callable[[Self, Any], Expression]
__lshift__: Callable[[Self, Any], Expression]
__rshift__: Callable[[Self, Any], Expression]
__mod__: Callable[[Self, Any], Expression]
__pow__: Callable[[Self, Any], Expression]
like: Callable[[Self, Any], Expression]
ilike: Callable[[Self, Any], Expression]
bin_and: Callable[[Self, Any], Expression]
bin_or: Callable[[Self, Any], Expression]
in_: Callable[[Self, Any], Expression]
not_in: Callable[[Self, Any], Expression]
regexp: Callable[[Self, Any], Expression]
iregexp: Callable[[Self, Any], Expression]
__lt__: ClassVar[Callable[[Self, Any], Expression]]
__le__: ClassVar[Callable[[Self, Any], Expression]]
__gt__: ClassVar[Callable[[Self, Any], Expression]]
__ge__: ClassVar[Callable[[Self, Any], Expression]]
__lshift__: ClassVar[Callable[[Self, Any], Expression]]
__rshift__: ClassVar[Callable[[Self, Any], Expression]]
__mod__: ClassVar[Callable[[Self, Any], Expression]]
__pow__: ClassVar[Callable[[Self, Any], Expression]]
like: ClassVar[Callable[[Self, Any], Expression]]
ilike: ClassVar[Callable[[Self, Any], Expression]]
bin_and: ClassVar[Callable[[Self, Any], Expression]]
bin_or: ClassVar[Callable[[Self, Any], Expression]]
in_: ClassVar[Callable[[Self, Any], Expression]]
not_in: ClassVar[Callable[[Self, Any], Expression]]
regexp: ClassVar[Callable[[Self, Any], Expression]]
iregexp: ClassVar[Callable[[Self, Any], Expression]]
def is_null(self, is_null: bool = ...) -> Expression: ...
def contains(self, rhs) -> Expression: ...
def startswith(self, rhs) -> Expression: ...