Skip to content

Commit 6c6eb7a

Browse files
[3.14] gh-143513: Clarify changed argument name of ResourceReader.is_resource (GH-143523) (GH-143562)
gh-143513: Clarify changed argument name of `ResourceReader.is_resource` (GH-143523) (cherry picked from commit 5462002) Co-authored-by: Alex Willmer <alex@moreati.org.uk>
1 parent fd430f8 commit 6c6eb7a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Doc/library/importlib.resources.abc.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@
6363
If the resource does not concretely exist on the file system,
6464
raise :exc:`FileNotFoundError`.
6565

66-
.. method:: is_resource(name)
66+
.. method:: is_resource(path)
6767
:abstractmethod:
6868

69-
Returns ``True`` if the named *name* is considered a resource.
70-
:exc:`FileNotFoundError` is raised if *name* does not exist.
69+
Returns ``True`` if the named *path* is considered a resource.
70+
:exc:`FileNotFoundError` is raised if *path* does not exist.
71+
72+
.. versionchanged:: 3.10
73+
The argument *name* was renamed to *path*.
7174

7275
.. method:: contents()
7376
:abstractmethod:

0 commit comments

Comments
 (0)