]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93464: [Enum] Add versionchanged tag (#99997)
authorEthan Furman <ethan@stoneleaf.us>
Mon, 5 Dec 2022 10:35:31 +0000 (02:35 -0800)
committerGitHub <noreply@github.com>
Mon, 5 Dec 2022 10:35:31 +0000 (12:35 +0200)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/library/enum.rst

index e29f5837f0ab2fb4fc07bba6c13bbce5af0ba27c..208aecf11c809bc830cd6229a0ae25f6b45edaf2 100644 (file)
@@ -804,6 +804,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*.