]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93464: [Enum] Add versionchanged tag (GH-99997)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 5 Dec 2022 10:45:37 +0000 (02:45 -0800)
committerGitHub <noreply@github.com>
Mon, 5 Dec 2022 10:45:37 +0000 (02:45 -0800)
(cherry picked from commit e3a3863cb9561705d3dd59a9367427ed45dfb5ea)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/library/enum.rst

index 8750be7470b55c42dd96f7d1d3217e1a8b64b259..99e9a193a60c06328c6605552bb9419257aecf96 100644 (file)
@@ -811,6 +811,11 @@ Utilities and Decorators
       * ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -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*.