Skip to content

Commit e3a3863

Browse files
gh-93464: [Enum] Add versionchanged tag (#99997)
Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent bdc93b8 commit e3a3863

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/enum.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,11 @@ Utilities and Decorators
804804
* ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to
805805
create the ``THREE`` enum member)
806806

807+
.. versionchanged:: 3.11.1
808+
809+
In prior versions, ``auto()`` had to be the only thing
810+
on the assignment line to work properly.
811+
807812
``_generate_next_value_`` can be overridden to customize the values used by
808813
*auto*.
809814

0 commit comments

Comments
 (0)