]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311)
authorMomo Eissenhauer <mmEissen@users.noreply.github.com>
Tue, 7 May 2024 11:42:18 +0000 (13:42 +0200)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 11:42:18 +0000 (13:42 +0200)
commit48e52fe2c9a7b33671f6b5d1420a71a6f31ad64b
treed814a257458cf2c2fde01bd5f7f54c33aca2b70b
parent44a9f3db2b40ba41999002799a74e6b6f2a3a50a
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)
Doc/library/enum.rst