Skip to content

Commit 71eddde

Browse files
authored
[3.9] gh-96845: Fix docs around importlib.abc.Traversable (GH-97515) (GH-97761)
Co-authored-by: Jason R. Coombs <[email protected]>
1 parent ac3d79c commit 71eddde

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Doc/library/importlib.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,8 @@ ABC hierarchy::
845845

846846
Read contents of self as text.
847847

848+
Note: In Python 3.11 and later, this class is found in ``importlib.resources.abc``.
849+
848850

849851
.. class:: TraversableResources
850852

@@ -856,6 +858,8 @@ ABC hierarchy::
856858

857859
.. versionadded:: 3.9
858860

861+
Note: In Python 3.11 and later, this class is found in ``importlib.resources.abc``.
862+
859863

860864
:mod:`importlib.resources` -- Resources
861865
---------------------------------------
@@ -918,7 +922,7 @@ The following functions are available.
918922

919923
.. function:: files(package)
920924

921-
Returns an :class:`importlib.resources.abc.Traversable` object
925+
Returns an :class:`importlib.abc.Traversable` object
922926
representing the resource container for the package (think directory)
923927
and its resources (think files). A Traversable may contain other
924928
containers (think subdirectories).
@@ -930,7 +934,7 @@ The following functions are available.
930934

931935
.. function:: as_file(traversable)
932936

933-
Given a :class:`importlib.resources.abc.Traversable` object representing
937+
Given a :class:`importlib.abc.Traversable` object representing
934938
a file, typically from :func:`importlib.resources.files`, return
935939
a context manager for use in a :keyword:`with` statement.
936940
The context manager provides a :class:`pathlib.Path` object.

0 commit comments

Comments
 (0)