[Python-checkins] bpo-45516: add protocol description to the TraversableResources documentation (#29173)

jaraco webhook-mailer at python.org
Sat Oct 23 11:48:04 EDT 2021


https://github.com/python/cpython/commit/8ce20bbdd6d2b1277a5e74154fcdcef2cb0fee49
commit: 8ce20bbdd6d2b1277a5e74154fcdcef2cb0fee49
branch: main
author: Filipe Laíns <lains at riseup.net>
committer: jaraco <jaraco at jaraco.com>
date: 2021-10-23T11:47:55-04:00
summary:

bpo-45516: add protocol description to the TraversableResources documentation (#29173)

Signed-off-by: Filipe Laíns <lains at riseup.net>

files:
A Misc/NEWS.d/next/Documentation/2021-10-22-21-57-42.bpo-45516.7_RMEX.rst
M Doc/library/importlib.rst

diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index a25f5145cac83..7a656fcb091da 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -870,6 +870,11 @@ ABC hierarchy::
 
     .. versionadded:: 3.9
 
+    .. abstractmethod:: files()
+
+       Returns a :class:`importlib.abc.Traversable` object for the loaded
+       package.
+
 
 :mod:`importlib.resources` -- Resources
 ---------------------------------------
diff --git a/Misc/NEWS.d/next/Documentation/2021-10-22-21-57-42.bpo-45516.7_RMEX.rst b/Misc/NEWS.d/next/Documentation/2021-10-22-21-57-42.bpo-45516.7_RMEX.rst
new file mode 100644
index 0000000000000..6295dd04b626a
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2021-10-22-21-57-42.bpo-45516.7_RMEX.rst
@@ -0,0 +1,2 @@
+Add protocol description to the :class:`importlib.abc.TraversableResources`
+documentation.



More information about the Python-checkins mailing list