]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-143513: Clarify changed argument name of `ResourceReader.is_resource` ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 Jan 2026 13:46:33 +0000 (14:46 +0100)
committerGitHub <noreply@github.com>
Thu, 8 Jan 2026 13:46:33 +0000 (13:46 +0000)
gh-143513: Clarify changed argument name of `ResourceReader.is_resource` (GH-143523)
(cherry picked from commit 5462002bbefd6cb79716828051beae94de8f2529)

Co-authored-by: Alex Willmer <alex@moreati.org.uk>
Doc/library/importlib.resources.abc.rst

index 8253a33f591a0bcd572148c8aab8bce08944890f..45979c5691270aa4d0aea0c2929c687db9d801a5 100644 (file)
        If the resource does not concretely exist on the file system,
        raise :exc:`FileNotFoundError`.
 
-    .. method:: is_resource(name)
+    .. method:: is_resource(path)
        :abstractmethod:
 
-       Returns ``True`` if the named *name* is considered a resource.
-       :exc:`FileNotFoundError` is raised if *name* does not exist.
+       Returns ``True`` if the named *path* is considered a resource.
+       :exc:`FileNotFoundError` is raised if *path* does not exist.
+
+       .. versionchanged:: 3.10
+          The argument *name* was renamed to *path*.
 
     .. method:: contents()
        :abstractmethod: