Thanks to visit codestin.com Credit goes to github.com
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 9fa73cb commit 317d1b5Copy full SHA for 317d1b5
Doc/library/enum.rst
@@ -786,8 +786,8 @@ Utilities and Decorators
786
* ``FIRST = auto()`` will work (auto() is replaced with ``1``);
787
* ``SECOND = auto(), -2`` will work (auto is replaced with ``2``, so ``2, -2`` is
788
used to create the ``SECOND`` enum member;
789
- * ``THREE`` = [auto(), -3]`` will *not* work (``auto, -3`` is used to create the
790
- ``THREE`` enum member)
+ * ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to
+ create the ``THREE`` enum member)
791
792
``_generate_next_value_`` can be overridden to customize the values used by
793
*auto*.
0 commit comments