]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) (GH-118699)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 May 2024 12:02:55 +0000 (14:02 +0200)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 12:02:55 +0000 (14:02 +0200)
commit8e53f66797718a12bad7c6b50b93c8062d062a82
tree957887cc46ae227eb1b0cb5c3f4d518751b6cd03
parentf85021a6a2f251883ac355a21f1ad51f7bf64fb7
[3.12] gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) (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 48e52fe2c9a7b33671f6b5d1420a71a6f31ad64b)

Co-authored-by: Momo Eissenhauer <mmEissen@users.noreply.github.com>
Doc/library/enum.rst