Skip to content

Commit

Permalink
chore(python): Better deprecate message for _import_from_c
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed Jul 20, 2024
1 parent 1df3b0b commit 7b9d143
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py-polars/polars/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,10 @@ def _from_pyseries(cls, pyseries: PySeries) -> Self:
return series

@classmethod
@deprecate_function("use _import_arrow_from_c", version="1.3")
@deprecate_function(
"use _import_arrow_from_c; if you are using an extension, please compile it with latest 'pyo3-polars'",
version="1.3",
)
def _import_from_c(cls, name: str, pointers: list[tuple[int, int]]) -> Self:
return cls._from_pyseries(PySeries._import_arrow_from_c(name, pointers))

Expand Down

0 comments on commit 7b9d143

Please sign in to comment.