|
26 | 26 | import polars as pl |
27 | 27 | import pyarrow as pa |
28 | 28 | from typing_extensions import Self |
| 29 | + from typing_extensions import TypeAlias |
29 | 30 | from typing_extensions import TypeIs |
30 | 31 |
|
31 | 32 | from narwhals._compliant.expr import EagerExpr |
|
34 | 35 | from narwhals.typing import _2DArray |
35 | 36 | from narwhals.utils import Implementation |
36 | 37 |
|
| 38 | + Incomplete: TypeAlias = Any |
| 39 | + |
37 | 40 | __all__ = ["CompliantDataFrame", "CompliantLazyFrame", "EagerDataFrame"] |
38 | 41 |
|
39 | 42 | T = TypeVar("T") |
@@ -69,10 +72,10 @@ def collect_schema(self) -> Mapping[str, DType]: ... |
69 | 72 | def drop(self, columns: Sequence[str], *, strict: bool) -> Self: ... |
70 | 73 | def drop_nulls(self, subset: Sequence[str] | None) -> Self: ... |
71 | 74 | def estimated_size(self, unit: SizeUnit) -> int | float: ... |
72 | | - def filter(self, predicate: CompliantExprT_contra | Any) -> Self: ... |
| 75 | + def filter(self, predicate: CompliantExprT_contra | Incomplete) -> Self: ... |
73 | 76 | def gather_every(self, n: int, offset: int) -> Self: ... |
74 | 77 | def get_column(self, name: str) -> CompliantSeriesT: ... |
75 | | - def group_by(self, *keys: str, drop_null_keys: bool) -> Any: ... |
| 78 | + def group_by(self, *keys: str, drop_null_keys: bool) -> Incomplete: ... |
76 | 79 | def head(self, n: int) -> Self: ... |
77 | 80 | def item(self, row: int | None, column: int | str | None) -> Any: ... |
78 | 81 | def iter_columns(self) -> Iterator[CompliantSeriesT]: ... |
|
0 commit comments