Skip to content

Commit

Permalink
gh-93464: [Enum] Add versionchanged tag (#99997)
Browse files Browse the repository at this point in the history
Co-authored-by: C.A.M. Gerlach <[email protected]>
  • Loading branch information
ethanfurman and CAM-Gerlach authored Dec 5, 2022
1 parent bdc93b8 commit e3a3863
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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*.

Expand Down

0 comments on commit e3a3863

Please sign in to comment.