From f74d210c87d97f4694a2f6b3d5704f1dc8bd9ba6 Mon Sep 17 00:00:00 2001 From: Ethan Furman Date: Mon, 5 Dec 2022 02:35:31 -0800 Subject: [PATCH] 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 --- Doc/library/enum.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 8750be7470b55c..99e9a193a60c06 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*.