File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -947,12 +947,13 @@ Utilities and Decorators
947947 the member's name. Care must be taken if mixing *auto() * with manually
948948 specified values.
949949
950- *auto * instances are only resolved when at the top level of an assignment:
950+ *auto * instances are only resolved when at the top level of an assignment, either by
951+ itself or as part of a tuple:
951952
952953 * ``FIRST = auto() `` will work (auto() is replaced with ``1 ``);
953954 * ``SECOND = auto(), -2 `` will work (auto is replaced with ``2 ``, so ``2, -2 `` is
954955 used to create the ``SECOND `` enum member;
955- * ``THREE = [auto(), -3] `` will *not * work (``<auto instance>, -3 `` is used to
956+ * ``THREE = [auto(), -3] `` will *not * work (``[ <auto instance>, -3] `` is used to
956957 create the ``THREE `` enum member)
957958
958959 .. versionchanged :: 3.11.1
You can’t perform that action at this time.
0 commit comments