Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.13] docs: add a more precise example in enum doc (GH-121015) #126306

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 1, 2024

  • docs: add a more precise example

Previous example used manual integer value assignment in class based declaration but in functional syntax has been used auto value assignment what could be confusing for the new users. Additionally documentation doesn't show how to declare new enum via functional syntax with usage of the manual value assignment.

  • docs: remove whitespace characters

  • refactor: change example


(cherry picked from commit ff257c7)

Co-authored-by: Filip "Ret2Me" Poplewski [email protected]
Co-authored-by: Ethan Furman [email protected]


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

* docs: add a more precise example

Previous example used manual integer value assignment in class based declaration but in functional syntax has been used auto value assignment what could be confusing for the new users. Additionally documentation doesn't show how to declare new enum via functional syntax with usage of the manual value assignment.

* docs: remove whitespace characters

* refactor: change example

---------

(cherry picked from commit ff257c7)

Co-authored-by: Filip "Ret2Me" Poplewski <[email protected]>
Co-authored-by: Ethan Furman <[email protected]>
@willingc willingc merged commit bdda85e into python:3.13 Nov 1, 2024
33 checks passed
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 issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants