@@ -845,6 +845,8 @@ ABC hierarchy::
845
845
846
846
Read contents of self as text.
847
847
848
+ Note: In Python 3.11 and later, this class is found in ``importlib.resources.abc ``.
849
+
848
850
849
851
.. class :: TraversableResources
850
852
@@ -856,6 +858,8 @@ ABC hierarchy::
856
858
857
859
.. versionadded :: 3.9
858
860
861
+ Note: In Python 3.11 and later, this class is found in ``importlib.resources.abc ``.
862
+
859
863
860
864
:mod: `importlib.resources ` -- Resources
861
865
---------------------------------------
@@ -918,7 +922,7 @@ The following functions are available.
918
922
919
923
.. function :: files(package)
920
924
921
- Returns an :class: `importlib.resources. abc.Traversable ` object
925
+ Returns an :class: `importlib.abc.Traversable ` object
922
926
representing the resource container for the package (think directory)
923
927
and its resources (think files). A Traversable may contain other
924
928
containers (think subdirectories).
@@ -930,7 +934,7 @@ The following functions are available.
930
934
931
935
.. function :: as_file(traversable)
932
936
933
- Given a :class: `importlib.resources. abc.Traversable ` object representing
937
+ Given a :class: `importlib.abc.Traversable ` object representing
934
938
a file, typically from :func: `importlib.resources.files `, return
935
939
a context manager for use in a :keyword: `with ` statement.
936
940
The context manager provides a :class: `pathlib.Path ` object.
0 commit comments