Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Doc/library/importlib.resources.abc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading