|  | 
| 9 | 9 | from typing import Mapping | 
| 10 | 10 | from typing import Protocol | 
| 11 | 11 | from typing import Sequence | 
| 12 |  | -from typing import TypeVar | 
| 13 |  | -from typing import Union | 
| 14 | 12 | from typing import overload | 
| 15 | 13 | 
 | 
| 16 | 14 | from narwhals._expression_parsing import ExprKind | 
|  | 
| 21 | 19 | from narwhals._expression_parsing import extract_compliant | 
| 22 | 20 | from narwhals._expression_parsing import infer_kind | 
| 23 | 21 | from narwhals._expression_parsing import is_scalar_like | 
| 24 |  | -from narwhals.dataframe import DataFrame | 
| 25 |  | -from narwhals.dataframe import LazyFrame | 
| 26 | 22 | from narwhals.dependencies import is_numpy_array | 
| 27 | 23 | from narwhals.dependencies import is_numpy_array_2d | 
| 28 | 24 | from narwhals.expr import Expr | 
|  | 
| 39 | 35 | from narwhals.utils import validate_laziness | 
| 40 | 36 | from narwhals.utils import validate_native_namespace_and_backend | 
| 41 | 37 | 
 | 
| 42 |  | -# Missing type parameters for generic type "DataFrame" | 
| 43 |  | -# However, trying to provide one results in mypy still complaining... | 
| 44 |  | -# The rest of the annotations seem to work fine with this anyway | 
| 45 |  | -FrameT = TypeVar("FrameT", bound=Union[DataFrame, LazyFrame])  # type: ignore[type-arg] | 
| 46 |  | - | 
| 47 |  | - | 
| 48 | 38 | if TYPE_CHECKING: | 
| 49 | 39 |     from types import ModuleType | 
| 50 | 40 | 
 | 
| 51 | 41 |     import polars as pl | 
| 52 | 42 |     import pyarrow as pa | 
| 53 | 43 |     from typing_extensions import Self | 
| 54 | 44 | 
 | 
|  | 45 | +    from narwhals.dataframe import DataFrame | 
|  | 46 | +    from narwhals.dataframe import LazyFrame | 
| 55 | 47 |     from narwhals.dtypes import DType | 
| 56 | 48 |     from narwhals.series import Series | 
| 57 | 49 |     from narwhals.typing import CompliantExpr | 
|  | 
0 commit comments