From 7b9d143963b0a51abda922513be87869e1bc40ea Mon Sep 17 00:00:00 2001 From: Misaki Kasumi Date: Sat, 20 Jul 2024 19:31:00 +0800 Subject: [PATCH] chore(python): Better deprecate message for _import_from_c --- 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))