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] gh-118310: Fix documentation for enum.Enum.__new__ (GH-118311) #118699

Merged
merged 1 commit into from May 7, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 7, 2024

The provided example was incorrect:

  • The example enum was missing the int mixin as implied by the context
  • The value of int('1a', 16) was incorrectly given as 17
    (should be 26)
    (cherry picked from commit 48e52fe)

Co-authored-by: Momo Eissenhauer mmEissen@users.noreply.github.com


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

…118311)

The provided example was incorrect:
- The example enum was missing the `int` mixin as implied by the context
- The value of `int('1a', 16)` was incorrectly given as 17
  (should be 26)
(cherry picked from commit 48e52fe)

Co-authored-by: Momo Eissenhauer <mmEissen@users.noreply.github.com>
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news awaiting review labels May 7, 2024
@encukou encukou merged commit 8e53f66 into python:3.12 May 7, 2024
25 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 news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants