-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
gh-118310: Fix documentation for enum.Enum.__new__
#118311
Conversation
527d6c1
to
5235be8
Compare
The relevant part of the documentation Preview: link |
5235be8
to
c308b9b
Compare
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) - The `.. note` tag was missing a space - Fix the indent to match other note tags
c308b9b
to
5a97410
Compare
@mmEissen Thanks for making the PR. I checked the example locally and the link to the documentation. Looks good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks correct to me. Waiting for a module maintaner :)
I don't think we need Ethan's sign-off here. |
…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 <[email protected]>
GH-118699 is a backport of this pull request to the 3.12 branch. |
… (GH-118699) gh-118310: Fix documentation for `enum.Enum.__new__` (GH-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 <[email protected]>
…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)
The provided example was incorrect:
int
mixin as implied by the contextint('1a', 16)
was incorrectly given as 17 (should be 26).. note
tag was missing a space📚 Documentation preview 📚: https://cpython-previews--118311.org.readthedocs.build/