Skip to content

Commit 5d7c09d

Browse files
moreatimiss-islington
authored andcommitted
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 5d7c09d

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)