Skip to content

Commit a755ee7

Browse files
authored
DEP: update version in deprecation warning of interpnd (scipy#22099)
1 parent b1d3506 commit a755ee7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scipy/_lib/deprecation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
_NoValue = object()
1414

1515
def _sub_module_deprecation(*, sub_package, module, private_modules, all,
16-
attribute, correct_module=None):
16+
attribute, correct_module=None, dep_version="1.16.0"):
1717
"""Helper function for deprecating modules that are public but were
1818
intended to be private.
1919
@@ -33,6 +33,8 @@ def _sub_module_deprecation(*, sub_package, module, private_modules, all,
3333
correct_module : str, optional
3434
Module in `sub_package` that `attribute` should be imported from.
3535
Default is that `attribute` should be imported from ``scipy.sub_package``.
36+
dep_version : str, optional
37+
Version in which deprecated attributes will be removed.
3638
"""
3739
if correct_module is not None:
3840
correct_import = f"scipy.{sub_package}.{correct_module}"
@@ -59,7 +61,7 @@ def _sub_module_deprecation(*, sub_package, module, private_modules, all,
5961
f"`scipy.{sub_package}.{module}.{attribute}` is deprecated along with "
6062
f"the `scipy.{sub_package}.{module}` namespace. "
6163
f"`scipy.{sub_package}.{module}.{attribute}` will be removed "
62-
f"in SciPy 1.14.0, and the `scipy.{sub_package}.{module}` namespace "
64+
f"in SciPy {dep_version}, and the `scipy.{sub_package}.{module}` namespace "
6365
f"will be removed in SciPy 2.0.0."
6466
)
6567

0 commit comments

Comments
 (0)