Skip to content

Commit 6b280a8

Browse files
barneygalehugovk
andauthored
GH-119054: Add alt text to pathlib inheritance diagram (#121158)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent d6d8707 commit 6b280a8

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)