8000 gh-93464: [Enum] Add versionchanged tag (#99997) · python/cpython@e3a3863 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e3a3863

Browse files
gh-93464: [Enum] Add versionchanged tag (#99997)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent bdc93b8 commit e3a3863

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/enum.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,11 @@ Utilities and Decorators
804804
* ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to
805805
create the ``THREE`` enum member)
806806

807+
.. versionchanged:: 3.11.1
808+
809+
In prior versions, ``auto()`` had to be the only thing
810+
on the assignment line to work properly.
811+
807812
``_generate_next_value_`` can be overridden to customize the values used by
808813
*auto*.
809814

0 commit comments

Comments
 (0)
0