Skip to content

Commit

Permalink
fix(typing): Use IntoDataFrameT in to_native (#1936)
Browse files Browse the repository at this point in the history
Mentioned in #1935 (comment)
  • Loading branch information
dangotbanned authored Feb 4, 2025
1 parent a2ff411 commit da2a9db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions narwhals/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ def to_native(narwhals_object: Any, *, pass_through: bool) -> Any: ...


def to_native(
narwhals_object: DataFrame[IntoFrameT] | LazyFrame[IntoFrameT] | Series[IntoSeriesT],
narwhals_object: DataFrame[IntoDataFrameT]
| LazyFrame[IntoFrameT]
| Series[IntoSeriesT],
*,
strict: bool | None = None,
pass_through: bool | None = None,
) -> IntoFrameT | Any:
) -> IntoDataFrameT | IntoFrameT | IntoSeriesT | Any:
"""Convert Narwhals object to native one.
Arguments:
Expand Down

0 comments on commit da2a9db

Please sign in to comment.