Skip to content

Commit

Permalink
Any in stable/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
EdAbati committed Nov 26, 2024
1 parent 3a14e1d commit 1e2632b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions narwhals/stable/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1150,19 +1150,15 @@ def _stableify(obj: NwDataFrame[IntoFrameT]) -> DataFrame[IntoFrameT]: ...
@overload
def _stableify(obj: NwLazyFrame[IntoFrameT]) -> LazyFrame[IntoFrameT]: ...
@overload
def _stableify(obj: NwSeries[IntoSeriesT]) -> Series: ...
def _stableify(obj: NwSeries[Any]) -> Series: ...
@overload
def _stableify(obj: NwExpr) -> Expr: ...
@overload
def _stableify(obj: Any) -> Any: ...


def _stableify(
obj: NwDataFrame[IntoFrameT]
| NwLazyFrame[IntoFrameT]
| NwSeries[IntoSeriesT]
| NwExpr
| Any,
obj: NwDataFrame[IntoFrameT] | NwLazyFrame[IntoFrameT] | NwSeries[Any] | NwExpr | Any,
) -> DataFrame[IntoFrameT] | LazyFrame[IntoFrameT] | Series | Expr | Any:
if isinstance(obj, NwDataFrame):
return DataFrame(
Expand Down

0 comments on commit 1e2632b

Please sign in to comment.