[Python-checkins] gh-93464: [Enum] Add versionchanged tag (GH-99997)

miss-islington webhook-mailer at python.org
Mon Dec 5 05:45:45 EST 2022


https://github.com/python/cpython/commit/7f2bcc7aaa7b340f840065f94260884f86ba3165
commit: 7f2bcc7aaa7b340f840065f94260884f86ba3165
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-12-05T02:45:37-08:00
summary:

gh-93464: [Enum] Add versionchanged tag (GH-99997)

(cherry picked from commit e3a3863cb9561705d3dd59a9367427ed45dfb5ea)

Co-authored-by: Ethan Furman <ethan at stoneleaf.us>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach at Gerlach.CAM>

files:
M Doc/library/enum.rst

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 (``<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*.
 



More information about the Python-checkins mailing list