Skip to content

Commit

Permalink
GH-99818: improve the documentation for zipfile.Path and Traversable (G…
Browse files Browse the repository at this point in the history
…H-101589)

Automerge-Triggered-By: GH:FFY00
  • Loading branch information
FFY00 committed Feb 20, 2023
1 parent 59e86ca commit 84181c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Doc/library/importlib.resources.abc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@

.. class:: Traversable

An object with a subset of pathlib.Path methods suitable for
An object with a subset of :class:`pathlib.Path` methods suitable for
traversing directories and opening files.

For a representation of the object on the file-system, use
:meth:`importlib.resources.as_file`.

.. versionadded:: 3.9

.. deprecated-removed:: 3.12 3.14
Expand Down
5 changes: 3 additions & 2 deletions Doc/library/zipfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ The module defines the following items:
.. class:: Path
:noindex:

A pathlib-compatible wrapper for zip files. See section
:ref:`path-objects` for details.
Class that implements a subset of the interface provided by
:class:`pathlib.Path`, including the full
:class:`importlib.resources.abc.Traversable` interface.

.. versionadded:: 3.8

Expand Down

0 comments on commit 84181c1

Please sign in to comment.