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 @@ -913,12 +913,13 @@ Utilities and Decorators
913913 the member's name. Care must be taken if mixing *auto() * with manually
914914 specified values.
915915
916- *auto * instances are only resolved when at the top level of an assignment:
916+ *auto * instances are only resolved when at the top level of an assignment, either by
917+ itself or as part of a tuple:
917918
918919 * ``FIRST = auto() `` will work (auto() is replaced with ``1 ``);
919920 * ``SECOND = auto(), -2 `` will work (auto is replaced with ``2 ``, so ``2, -2 `` is
920921 used to create the ``SECOND `` enum member;
921- * ``THREE = [auto(), -3] `` will *not * work (``<auto instance>, -3 `` is used to
922+ * ``THREE = [auto(), -3] `` will *not * work (``[ <auto instance>, -3] ``) is used to
922923 create the ``THREE `` enum member)
923924
924925 .. versionchanged :: 3.11.1
You can’t perform that action at this time.
0 commit comments