mirror of
https://github.com/python/cpython.git
synced 2025-01-26 19:13:43 +08:00
gh-93464: [Enum] Add versionchanged tag (#99997)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
parent
bdc93b8a35
commit
e3a3863cb9
@ -804,6 +804,11 @@ Utilities and Decorators
|
||||
* ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to
|
||||
create the ``THREE`` enum member)
|
||||
|
||||
.. versionchanged:: 3.11.1
|
||||
|
||||
In prior versions, ``auto()`` had to be the only thing
|
||||
on the assignment line to work properly.
|
||||
|
||||
``_generate_next_value_`` can be overridden to customize the values used by
|
||||
*auto*.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user