Skip to content

Commit

Permalink
patch: Fix incosistent between tying and comments in 'from_native' wh…
Browse files Browse the repository at this point in the history
…en 'strict=True'
  • Loading branch information
luke396 committed Aug 25, 2024
1 parent 8eeec6b commit 2fc90a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions narwhals/stable/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def from_native(
eager_only: None = ...,
eager_or_interchange_only: Literal[True],
series_only: None = ...,
allow_series: None = ...,
allow_series: Literal[True] = ...,
) -> DataFrame[IntoDataFrameT]:
"""
from_native(df, strict=True, eager_or_interchange_only=True, allow_series=True)
Expand All @@ -616,7 +616,7 @@ def from_native(
eager_only: Literal[True],
eager_or_interchange_only: None = ...,
series_only: None = ...,
allow_series: None = ...,
allow_series: Literal[True] = ...,
) -> DataFrame[IntoDataFrameT]:
"""
from_native(df, strict=True, eager_only=True, allow_series=True)
Expand All @@ -629,10 +629,10 @@ def from_native(
native_dataframe: Any,
*,
strict: Literal[True] = ...,
eager_only: None = ...,
eager_only: Literal[True] = ...,
eager_or_interchange_only: None = ...,
series_only: None = ...,
allow_series: Literal[True],
allow_series: None = ...,
) -> DataFrame[Any] | LazyFrame[Any] | Series:
"""
from_native(df, strict=True, eager_only=True)
Expand Down

0 comments on commit 2fc90a2

Please sign in to comment.