]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-136672: Docs: Move Enum functions and add examples (GH-136791)
authorRafaelWO <38643099+RafaelWO@users.noreply.github.com>
Tue, 12 Aug 2025 19:28:27 +0000 (21:28 +0200)
committerGitHub <noreply@github.com>
Tue, 12 Aug 2025 19:28:27 +0000 (12:28 -0700)
commit003bd8cc63279b455a7ca5d783ff3623fd2b3804
tree24d9cb754b88b763cbf8a291624f8687901326c0
parent654b8d936450d94472e26f0b14a9f8d6d249563a
gh-136672: Docs: Move Enum functions and add examples (GH-136791)

* Docs: Move Enum functions and add examples

When the `Enum` functions `_add_alias_` and `_add_value_alias_` were added in de6bca956432cc852a4a41e2a2cee9cdacd19f35, the documentation for them was done under `EnumType` instead of `Enum`.

This change moves them to the docs of the `Enum` class and adds an example for each function.

---------

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Doc/howto/enum.rst
Doc/library/enum.rst