Skip to content

[3.13] gh-136672: Docs: Move Enum functions and add examples (GH-136791) - #137689

Merged
AA-Turner merged 1 commit into
python:3.13from
miss-islington:backport-003bd8c-3.13
Aug 12, 2025
Merged

AA-Turner merged 1 commit into
python:3.13from
miss-islington:backport-003bd8c-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 12, 2025 •

Copy link
Copy Markdown
Contributor
  • Docs: Move Enum functions and add examples

When the Enum functions _add_alias_ and _add_value_alias_ were added in de6bca9, 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.


(cherry picked from commit 003bd8c)

Co-authored-by: RafaelWO 38643099+RafaelWO@users.noreply.github.com
Co-authored-by: Ethan Furman ethan@stoneleaf.us


📚 Documentation preview 📚: https://cpython-previews--137689.org.readthedocs.build/

…-136791)

* Docs: Move Enum functions and add examples

When the `Enum` functions `_add_alias_` and `_add_value_alias_` were added in de6bca9, 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.

---------
(cherry picked from commit 003bd8c)

Co-authored-by: RafaelWO <38643099+RafaelWO@users.noreply.github.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news sprint

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants