|
5 | 5 | import typing as t |
6 | 6 | from typing import TYPE_CHECKING |
7 | 7 |
|
8 | | -from narwhals._plan import aggregation as agg |
9 | | -from narwhals._plan import boolean |
10 | | -from narwhals._plan import expr |
11 | | -from narwhals._plan import expr_parsing as parse |
12 | | -from narwhals._plan import functions as F # noqa: N812 |
13 | | -from narwhals._plan import operators as ops |
14 | | -from narwhals._plan.options import EWMOptions |
15 | | -from narwhals._plan.options import RankOptions |
16 | | -from narwhals._plan.options import RollingOptionsFixedWindow |
17 | | -from narwhals._plan.options import RollingVarParams |
18 | | -from narwhals._plan.options import SortMultipleOptions |
19 | | -from narwhals._plan.options import SortOptions |
| 8 | +from narwhals._plan import ( |
| 9 | + aggregation as agg, |
| 10 | + boolean, |
| 11 | + expr, |
| 12 | + expr_parsing as parse, |
| 13 | + functions as F, # noqa: N812 |
| 14 | + operators as ops, |
| 15 | +) |
| 16 | +from narwhals._plan.options import ( |
| 17 | + EWMOptions, |
| 18 | + RankOptions, |
| 19 | + RollingOptionsFixedWindow, |
| 20 | + RollingVarParams, |
| 21 | + SortMultipleOptions, |
| 22 | + SortOptions, |
| 23 | +) |
20 | 24 | from narwhals._plan.window import Over |
21 | 25 | from narwhals.dtypes import DType |
22 | 26 | from narwhals.exceptions import ComputeError |
23 | | -from narwhals.utils import Version |
24 | | -from narwhals.utils import _hasattr_static |
25 | | -from narwhals.utils import flatten |
| 27 | +from narwhals.utils import Version, _hasattr_static, flatten |
26 | 28 |
|
27 | 29 | if TYPE_CHECKING: |
28 | 30 | from typing_extensions import Self |
29 | 31 |
|
30 | | - from narwhals._plan.common import ExprIR |
31 | | - from narwhals._plan.common import IntoExpr |
32 | | - from narwhals._plan.common import IntoExprColumn |
33 | | - from narwhals._plan.common import Seq |
34 | | - from narwhals._plan.common import Udf |
| 32 | + from narwhals._plan.common import ExprIR, IntoExpr, IntoExprColumn, Seq, Udf |
35 | 33 | from narwhals._plan.meta import ExprIRMetaNamespace |
36 | | - from narwhals.typing import FillNullStrategy |
37 | | - from narwhals.typing import NativeSeries |
38 | | - from narwhals.typing import NumericLiteral |
39 | | - from narwhals.typing import RankMethod |
40 | | - from narwhals.typing import RollingInterpolationMethod |
41 | | - from narwhals.typing import TemporalLiteral |
| 34 | + from narwhals.typing import ( |
| 35 | + FillNullStrategy, |
| 36 | + NativeSeries, |
| 37 | + NumericLiteral, |
| 38 | + RankMethod, |
| 39 | + RollingInterpolationMethod, |
| 40 | + TemporalLiteral, |
| 41 | + ) |
42 | 42 |
|
43 | 43 |
|
44 | 44 | # NOTE: Overly simplified placeholders for mocking typing |
|
0 commit comments