Skip to content

Commit

Permalink
Merge pull request #15468 from pllim/rm-depre-utils-v6.0
Browse files Browse the repository at this point in the history
MNT: Removed deprecated version_path in minversion
  • Loading branch information
pllim committed Oct 12, 2023
2 parents ac9e9f7 + fe8216f commit dab1289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 1 addition & 8 deletions astropy/utils/introspection.py
Expand Up @@ -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"]
Expand Down Expand Up @@ -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`
Expand Down
1 change: 1 addition & 0 deletions docs/changes/utils/15468.api.rst
@@ -0,0 +1 @@
Removed deprecated ``version_path`` in ``minversion`` function; it is no longer used.

0 comments on commit dab1289

Please sign in to comment.