From e3a3863cb9561705d3dd59a9367427ed45dfb5ea Mon Sep 17 00:00:00 2001 From: Ethan Furman Date: Mon, 5 Dec 2022 02:35:31 -0800 Subject: gh-93464: [Enum] Add versionchanged tag (#99997) Co-authored-by: C.A.M. Gerlach --- Doc/library/enum.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index e29f583..208aecf 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -804,6 +804,11 @@ Utilities and Decorators * ``THREE = [auto(), -3]`` will *not* work (``, -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*. -- cgit v0.12