From 55f1537656b68f177b9a18554d26a3e81086a9d1 Mon Sep 17 00:00:00 2001 From: jorenham Date: Sun, 22 Dec 2024 04:31:52 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=92=AC=20`special`:=20mention=20the?= =?UTF-8?q?=20scipy=20version=20in=20the=20`lpn`=20and=20`[c]lpmn`=20depre?= =?UTF-8?q?cation=20msgs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scipy-stubs/special/_basic.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scipy-stubs/special/_basic.pyi b/scipy-stubs/special/_basic.pyi index d5804931..d2739564 100644 --- a/scipy-stubs/special/_basic.pyi +++ b/scipy-stubs/special/_basic.pyi @@ -180,11 +180,11 @@ def pro_cv_seq(m: onp.ToInt, n: onp.ToInt, c: onp.ToFloat) -> onp.Array1D[_f8]: def obl_cv_seq(m: onp.ToInt, n: onp.ToInt, c: onp.ToFloat) -> onp.Array1D[_f8]: ... # -@deprecated("This function is deprecated and will be removed in a future version. Use `assoc_legendre_p_all` instead.") +@deprecated("This function is deprecated and will be removed in SciPy 1.17.0. Use `assoc_legendre_p_all` instead.") def lpmn(m: onp.ToInt, n: onp.ToInt, z: onp.ToFloat | onp.ToFloatND) -> _tuple2[onp.Array2D[_f8]]: ... -@deprecated("This function is deprecated and will be removed in a future version. Use `assoc_legendre_p_all` instead.") +@deprecated("This function is deprecated and will be removed in SciPy 1.17.0. Use `assoc_legendre_p_all` instead.") def clpmn(m: onp.ToInt, n: onp.ToInt, z: onp.ToComplex | onp.ToComplexND, type: L[2, 3] = 3) -> _tuple2[onp.Array2D[_c16]]: ... -@deprecated("This function is deprecated and will be removed in a future version. Use `legendre_p_all` instead.") +@deprecated("This function is deprecated and will be removed in SciPy 1.17.0. Use `legendre_p_all` instead.") def lpn(n: onp.ToInt, z: onp.ToFloat) -> _tuple2[onp.Array1D[_f]] | _tuple2[onp.Array1D[_c]]: ... # the dtype propagates # From 5048c7e2ffae92123ce5191e0ec5cee952526b8c Mon Sep 17 00:00:00 2001 From: jorenham Date: Sun, 22 Dec 2024 05:28:17 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=AC=20`special`:=20tweak=20the=20`?= =?UTF-8?q?lpn`=20&=20`[c]lpmn`=20deprecation=20messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scipy-stubs/special/_basic.pyi | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/scipy-stubs/special/_basic.pyi b/scipy-stubs/special/_basic.pyi index d2739564..dd7badb6 100644 --- a/scipy-stubs/special/_basic.pyi +++ b/scipy-stubs/special/_basic.pyi @@ -180,12 +180,21 @@ def pro_cv_seq(m: onp.ToInt, n: onp.ToInt, c: onp.ToFloat) -> onp.Array1D[_f8]: def obl_cv_seq(m: onp.ToInt, n: onp.ToInt, c: onp.ToFloat) -> onp.Array1D[_f8]: ... # -@deprecated("This function is deprecated and will be removed in SciPy 1.17.0. Use `assoc_legendre_p_all` instead.") +@deprecated( + "This function is deprecated as of SciPy 1.15.0 and will be removed in SciPy 1.17.0. " + "Please use `scipy.special.legendre_p_all` instead." +) +def lpn(n: onp.ToInt, z: onp.ToFloat) -> _tuple2[onp.Array1D[_f]] | _tuple2[onp.Array1D[_c]]: ... # the dtype propagates +@deprecated( + "This function is deprecated as of SciPy 1.15.0 and will be removed in SciPy 1.17.0. " + "Please use `scipy.special.assoc_legendre_p_all` instead." +) def lpmn(m: onp.ToInt, n: onp.ToInt, z: onp.ToFloat | onp.ToFloatND) -> _tuple2[onp.Array2D[_f8]]: ... -@deprecated("This function is deprecated and will be removed in SciPy 1.17.0. Use `assoc_legendre_p_all` instead.") +@deprecated( + "This function is deprecated as of SciPy 1.15.0 and will be removed in SciPy 1.17.0. " + "Please use `scipy.special.assoc_legendre_p_all` instead." +) def clpmn(m: onp.ToInt, n: onp.ToInt, z: onp.ToComplex | onp.ToComplexND, type: L[2, 3] = 3) -> _tuple2[onp.Array2D[_c16]]: ... -@deprecated("This function is deprecated and will be removed in SciPy 1.17.0. Use `legendre_p_all` instead.") -def lpn(n: onp.ToInt, z: onp.ToFloat) -> _tuple2[onp.Array1D[_f]] | _tuple2[onp.Array1D[_c]]: ... # the dtype propagates # @overload