Skip to content

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

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants