We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bcc68b commit 7f2bcc7Copy full SHA for 7f2bcc7
Doc/library/enum.rst
@@ -811,6 +811,11 @@ Utilities and Decorators
811
* ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to
812
create the ``THREE`` enum member)
813
814
+ .. versionchanged:: 3.11.1
815
+
816
+ In prior versions, ``auto()`` had to be the only thing
817
+ on the assignment line to work properly.
818
819
``_generate_next_value_`` can be overridden to customize the values used by
820
*auto*.
821
0 commit comments