https://github.com/python/cpython/commit/e48fb94d8c0841b5991056aeda4c3c4f60577dff
commit: e48fb94d8c0841b5991056aeda4c3c4f60577dff
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: ethanfurman <[email protected]>
date: 2025-12-18T11:18:46-08:00
summary:

[3.14] gh-118342: [Enum] update docs (GH-137290) (GH-142953)

gh-118342: [Enum] update docs (GH-137290)

(cherry picked from commit e79c39101a9f55882f54df0bb3ecfa23238692de)

Co-authored-by: Ethan Furman <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Doc/library/enum.rst

diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index a8a7e671aadca2..0da27ba8e78284 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -947,12 +947,13 @@ Utilities and Decorators
    the member's name.  Care must be taken if mixing *auto()* with manually
    specified values.
 
-   *auto* instances are only resolved when at the top level of an assignment:
+   *auto* instances are only resolved when at the top level of an assignment, 
either by
+   itself or as part of a tuple:
 
    * ``FIRST = auto()`` will work (auto() is replaced with ``1``);
    * ``SECOND = auto(), -2`` will work (auto is replaced with ``2``, so ``2, 
-2`` is
      used to create the ``SECOND`` enum member;
-   * ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used 
to
+   * ``THREE = [auto(), -3]`` will *not* work (``[<auto instance>, -3]`` is 
used to
      create the ``THREE`` enum member)
 
    .. versionchanged:: 3.11.1

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to