Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit7e9b2b0

Browse files
[Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)
(cherry picked from commit64ed609)Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
1 parentf49006e commit7e9b2b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Doc/library/enum.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,9 @@ Utilities and Decorators
799799
call an *Enum*'s:meth:`_generate_next_value_` to get an appropriate value.
800800
For *Enum* and *IntEnum* that appropriate value will be the last value plus
801801
one; for *Flag* and *IntFlag* it will be the first power-of-two greater
802-
than thelast value; for *StrEnum* it will be the lower-cased version of the
803-
member's name. Care must be taken if mixing *auto()* with manually specified
804-
values.
802+
than thehighest value; for *StrEnum* it will be the lower-cased version of
803+
themember's name. Care must be taken if mixing *auto()* with manually
804+
specifiedvalues.
805805

806806
*auto* instances are only resolved when at the top level of an assignment:
807807

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp