gh-143513: Clarify changed argument name of ResourceReader.is_resource (GH-143523)

This commit is contained in:
Alex Willmer 2026-01-08 13:40:17 +00:00 committed by GitHub
parent efaa56f73c
commit 5462002bbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: