Skip to content

Commit 7f2bcc7

Browse files
miss-islingtonethanfurmanCAM-Gerlach
authored
gh-93464: [Enum] Add versionchanged tag (GH-99997)
(cherry picked from commit e3a3863) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent 9bcc68b commit 7f2bcc7

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
@@ -811,6 +811,11 @@ Utilities and Decorators
811811
* ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to
812812
create the ``THREE`` enum member)
813813

814+
.. versionchanged:: 3.11.1
815+
816+
In prior versions, ``auto()`` had to be the only thing
817+
on the assignment line to work properly.
818+
814819
``_generate_next_value_`` can be overridden to customize the values used by
815820
*auto*.
816821

0 commit comments

Comments
 (0)