Skip to content

Commit

Permalink
chore(python): Better deprecate message for _import_from_c (#17753)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 authored Jul 21, 2024
1 parent 949bfe8 commit e8e68a1
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 e8e68a1

Please sign in to comment.