From fe8216f5cffd354af41e1b0ad1ea8429ec1bb49c Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:52:31 -0400 Subject: [PATCH] MNT: Removed deprecated version_path in minversion --- astropy/utils/introspection.py | 9 +-------- docs/changes/utils/15468.api.rst | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) create mode 100644 docs/changes/utils/15468.api.rst diff --git a/astropy/utils/introspection.py b/astropy/utils/introspection.py index 8e50efece68..e4d955e316e 100644 --- a/astropy/utils/introspection.py +++ b/astropy/utils/introspection.py @@ -11,8 +11,6 @@ from packaging.version import Version -from astropy.utils.decorators import deprecated_renamed_argument - __all__ = ["resolve_name", "minversion", "find_current_module", "isinstancemethod"] __doctest_skip__ = ["find_current_module"] @@ -102,16 +100,11 @@ def resolve_name(name, *additional_parts): return ret -@deprecated_renamed_argument("version_path", None, "5.0") -def minversion(module, version, inclusive=True, version_path="__version__"): +def minversion(module, version, inclusive=True): """ Returns `True` if the specified Python module satisfies a minimum version requirement, and `False` if not. - .. deprecated:: - ``version_path`` is not used anymore and is deprecated in - ``astropy`` 5.0. - Parameters ---------- module : module or `str` diff --git a/docs/changes/utils/15468.api.rst b/docs/changes/utils/15468.api.rst new file mode 100644 index 00000000000..063403bb39a --- /dev/null +++ b/docs/changes/utils/15468.api.rst @@ -0,0 +1 @@ +Removed deprecated ``version_path`` in ``minversion`` function; it is no longer used.