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.12] docs: add a more precise example in enum doc (GH-121015) #126307

Merged
merged 1 commit into from
Nov 1, 2024

Commits on Nov 1, 2024

  1. docs: add a more precise example in enum doc (pythonGH-121015)

    * 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]>
    2 people authored and miss-islington committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    cbbe079 View commit details
    Browse the repository at this point in the history