10000 [3.10] gh-96845: Fix docs around importlib.abc.Traversable by jaraco · Pull Request #97515 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.10] gh-96845: Fix docs around importlib.abc.Traversable #97515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 3, 2022
Merged
Changes from 1 commit
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
Next Next commit
[3.10] gh-96845: Correct reference to Traversable* classes.
  • Loading branch information
jaraco committed Sep 23, 2022
commit 0ce968b7f49b3364059f2b5524b3f608ca306e22
4 changes: 2 additions & 2 deletions Doc/library/importlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ The following functions are available.

.. function:: files(package)

Returns an :class:`importlib.resources.abc.Traversable` object
Returns an :class:`importlib.abc.Traversable` object
representing the resource container for the package (think directory)
and its resources (think files). A Traversable may contain other
containers (think subdirectories).
Expand All @@ -942,7 +942,7 @@ The following functions are available.

.. function:: as_file(traversable)

Given a :class:`importlib.resources.abc.Traversable` object representing
Given a :class:`importlib.abc.Traversable` object representing
a file, typically from :func:`importlib.resources.files`, return
a context manager for use in a :keyword:`with` statement.
The context manager provides a :class:`pathlib.Path` object.
Expand Down
0