From: Alex Willmer Date: Thu, 8 Jan 2026 13:40:17 +0000 (+0000) Subject: gh-143513: Clarify changed argument name of `ResourceReader.is_resource` (GH-143523) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5462002bbefd6cb79716828051beae94de8f2529;p=thirdparty%2FPython%2Fcpython.git gh-143513: Clarify changed argument name of `ResourceReader.is_resource` (GH-143523) --- diff --git a/Doc/library/importlib.resources.abc.rst b/Doc/library/importlib.resources.abc.rst index 8253a33f591a..45979c569127 100644 --- a/Doc/library/importlib.resources.abc.rst +++ b/Doc/library/importlib.resources.abc.rst @@ -63,11 +63,14 @@ 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: