Skip to content

Commit

Permalink
[3.10] GH-99818: improve the documentation for zipfile.Path and Trave…
Browse files Browse the repository at this point in the history
…rsable (GH-101589) (#102267)
  • Loading branch information
hauntsaninja authored Feb 25, 2023
1 parent d22a2cd commit 4667c4d
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.rst
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,12 @@ ABC hierarchy::

.. 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

.. abstractmethod:: name()
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 4667c4d

Please sign in to comment.