diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-06-29 17:46:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-29 17:46:53 (GMT) |
commit | 6b280a84988ca221b5bdc1077a914e873790cce5 (patch) | |
tree | b5e9aba5720f767152a3811c49d71832ea504def | |
parent | d6d8707ff217f211f3a2e48084cc0ddfa41efc4d (diff) | |
download | cpython-6b280a84988ca221b5bdc1077a914e873790cce5.zip cpython-6b280a84988ca221b5bdc1077a914e873790cce5.tar.gz cpython-6b280a84988ca221b5bdc1077a914e873790cce5.tar.bz2 |
GH-119054: Add alt text to pathlib inheritance diagram (#121158)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
-rw-r--r-- | Doc/library/pathlib.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 49b9c8f..0918bbb 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -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 |