Skip to content

Commit

Permalink
fix(python): Restore accidentally removed deprecated parameters (#17818)
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion authored Jul 23, 2024
1 parent b8e3202 commit 3981d47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py-polars/polars/io/ipc/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
from polars._typing import SchemaDict


@deprecate_renamed_parameter("row_count_name", "row_index_name", version="0.20.4")
@deprecate_renamed_parameter("row_count_offset", "row_index_offset", version="0.20.4")
def read_ipc(
source: str | Path | IO[bytes] | bytes,
*,
Expand Down Expand Up @@ -341,6 +343,8 @@ def read_ipc_schema(source: str | Path | IO[bytes] | bytes) -> dict[str, DataTyp
return _read_ipc_schema(source)


@deprecate_renamed_parameter("row_count_name", "row_index_name", version="0.20.4")
@deprecate_renamed_parameter("row_count_offset", "row_index_offset", version="0.20.4")
def scan_ipc(
source: str | Path | list[str] | list[Path],
*,
Expand Down
3 changes: 3 additions & 0 deletions py-polars/polars/io/ndjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pathlib import Path
from typing import TYPE_CHECKING, Any, Sequence

from polars._utils.deprecation import deprecate_renamed_parameter
from polars._utils.various import normalize_filepath
from polars._utils.wrap import wrap_df, wrap_ldf
from polars.datatypes import N_INFER_DEFAULT
Expand Down Expand Up @@ -162,6 +163,8 @@ def read_ndjson(
).collect()


@deprecate_renamed_parameter("row_count_name", "row_index_name", version="0.20.4")
@deprecate_renamed_parameter("row_count_offset", "row_index_offset", version="0.20.4")
def scan_ndjson(
source: str | Path | list[str] | list[Path],
*,
Expand Down

0 comments on commit 3981d47

Please sign in to comment.