Skip to content

Commit

Permalink
pythonGH-119054: Add alt text to pathlib inheritance diagram (pythonG…
Browse files Browse the repository at this point in the history
…H-121158)

(cherry picked from commit 6b280a8)

Co-authored-by: Barney Gale <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
2 people authored and miss-islington committed Jun 29, 2024
1 parent 22dfecf commit 5432bf3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ inherit from pure paths but also provide I/O operations.
.. image:: pathlib-inheritance.png
:align: center
:class: invert-in-dark-mode
:alt: Inheritance diagram showing the classes available in pathlib. The
most basic class is PurePath, which has three direct subclasses:
PurePosixPath, PureWindowsPath, and Path. Further to these four
classes, there are two classes that use multiple inheritance:
PosixPath subclasses PurePosixPath and Path, and WindowsPath
subclasses PureWindowsPath and Path.

If you've never used this module before or just aren't sure which class is
right for your task, :class:`Path` is most likely what you need. It instantiates
Expand Down

0 comments on commit 5432bf3

Please sign in to comment.