Skip to content

Commit d474772

Browse files
miss-islingtonbarneygalehugovk
authored
[3.12] GH-119054: Add alt text to pathlib inheritance diagram (GH-121158) (#121169)
GH-119054: Add alt text to pathlib inheritance diagram (GH-121158) (cherry picked from commit 6b280a8) Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent d6eff18 commit d474772

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/pathlib.rst

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ inherit from pure paths but also provide I/O operations.
2121
.. image:: pathlib-inheritance.png
2222
:align: center
2323
:class: invert-in-dark-mode
24+
:alt: Inheritance diagram showing the classes available in pathlib. The
25+
most basic class is PurePath, which has three direct subclasses:
26+
PurePosixPath, PureWindowsPath, and Path. Further to these four
27+
classes, there are two classes that use multiple inheritance:
28+
PosixPath subclasses PurePosixPath and Path, and WindowsPath
29+
subclasses PureWindowsPath and Path.
2430

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

0 commit comments

Comments
 (0)