From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 5 Dec 2022 10:45:37 +0000 (-0800) Subject: gh-93464: [Enum] Add versionchanged tag (GH-99997) X-Git-Tag: v3.11.1~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f2bcc7aaa7b340f840065f94260884f86ba3165;p=thirdparty%2FPython%2Fcpython.git gh-93464: [Enum] Add versionchanged tag (GH-99997) (cherry picked from commit e3a3863cb9561705d3dd59a9367427ed45dfb5ea) Co-authored-by: Ethan Furman Co-authored-by: C.A.M. Gerlach --- diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 8750be7470b5..99e9a193a60c 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -811,6 +811,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*.