mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-45516: use documentation links in TraversableResources' description (GH-29045)
I think this makes the documentation much more digestible :) Signed-off-by: Filipe Laíns <lains@riseup.net>
This commit is contained in:
parent
5f09bb021a
commit
c029567530
1 changed files with 5 additions and 4 deletions
|
|
@ -859,10 +859,11 @@ ABC hierarchy::
|
|||
.. class:: TraversableResources
|
||||
|
||||
An abstract base class for resource readers capable of serving
|
||||
the ``files`` interface. Subclasses ResourceReader and provides
|
||||
concrete implementations of the ResourceReader's abstract
|
||||
methods. Therefore, any loader supplying TraversableReader
|
||||
also supplies ResourceReader.
|
||||
the :meth:`importlib.resources.files` interface. Subclasses
|
||||
:class:`importlib.abc.ResourceReader` and provides
|
||||
concrete implementations of the :class:`importlib.abc.ResourceReader`'s
|
||||
abstract methods. Therefore, any loader supplying
|
||||
:class:`importlib.abc.TraversableReader` also supplies ResourceReader.
|
||||
|
||||
Loaders that wish to support resource reading are expected to
|
||||
implement this interface.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue