|
7 | 7 | if TYPE_CHECKING: |
8 | 8 | from narwhals._sql.dataframe import SQLLazyFrame |
9 | 9 | from narwhals._sql.expr import SQLExpr |
| 10 | + from narwhals.dtypes import Boolean |
10 | 11 |
|
11 | 12 | SQLExprAny = SQLExpr[Any, Any] |
12 | 13 | SQLLazyFrameAny = SQLLazyFrame[Any, Any, Any] |
|
17 | 18 |
|
18 | 19 |
|
19 | 20 | class NativeSQLExpr(NativeExpr): |
20 | | - def __gt__(self, other: Any) -> Any: ... |
| 21 | + # TODO @mp: fix input type for all these! |
| 22 | + def __gt__(self, value: float) -> Boolean: ... |
21 | 23 |
|
22 | | - def __le__(self, other: Any) -> Any: ... |
| 24 | + def __lt__(self, value: float) -> Boolean: ... |
| 25 | + |
| 26 | + def __ge__(self, value: float) -> Boolean: ... |
| 27 | + |
| 28 | + def __le__(self, value: float) -> Boolean: ... |
| 29 | + |
| 30 | + def __eq__(self, value: float) -> Boolean: ... |
| 31 | + |
| 32 | + def __ne__(self, value: float) -> Boolean: ... |
| 33 | + # do we want any more of the arithmetic methods? I wasn't sure between lefthan & righthand methods.. |
| 34 | + def __sub__(self, value: float) -> Any: ... |
| 35 | + |
| 36 | + def __add__(self, value: float) -> Any: ... |
| 37 | + |
| 38 | + def __truediv__(self, value: float) -> Any: ... |
| 39 | + |
| 40 | + def __mul__(self, value: float) -> Any: ... |
0 commit comments