From: Ethan Furman Date: Mon, 5 Dec 2022 10:35:31 +0000 (-0800) Subject: gh-93464: [Enum] Add versionchanged tag (#99997) X-Git-Tag: v3.12.0a3~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3a3863cb9561705d3dd59a9367427ed45dfb5ea;p=thirdparty%2FPython%2Fcpython.git gh-93464: [Enum] Add versionchanged tag (#99997) Co-authored-by: C.A.M. Gerlach --- diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index e29f5837f0ab..208aecf11c80 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*.