From e8e68a182f721d8601e27a88a3803aae29385050 Mon Sep 17 00:00:00 2001 From: Rui He <118280419+ruihe774@users.noreply.github.com> Date: Sun, 21 Jul 2024 18:49:04 +0800 Subject: [PATCH] chore(python): Better deprecate message for _import_from_c (#17753) --- py-polars/polars/series/series.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/py-polars/polars/series/series.py b/py-polars/polars/series/series.py index 8b49a3a4bd8f..10a4ff21a99c 100644 --- a/py-polars/polars/series/series.py +++ b/py-polars/polars/series/series.py @@ -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))