summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/enum.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index e29f583..208aecf 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -804,6 +804,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*.