gh-93464: [Enum] Add versionchanged tag (#99997)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
Ethan Furman 2022-12-05 02:35:31 -08:00 committed by GitHub
parent bdc93b8a35
commit e3a3863cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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*.