[3.13] GH-119054: Add alt text to pathlib inheritance diagram (GH-121158) (#121168)

GH-119054: Add alt text to pathlib inheritance diagram (GH-121158)
(cherry picked from commit 6b280a8498)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-06-29 20:02:53 +02:00 committed by GitHub
parent c70f1122b4
commit 00b071137b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,6 +21,12 @@ inherit from pure paths but also provide I/O operations.
.. image:: pathlib-inheritance.png .. image:: pathlib-inheritance.png
:align: center :align: center
:class: invert-in-dark-mode :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 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 right for your task, :class:`Path` is most likely what you need. It instantiates