[Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)

(cherry picked from commit 64ed609c53)

Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2023-01-03 14:27:38 -08:00 committed by GitHub
parent f49006e6a2
commit 7e9b2b0aa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -799,9 +799,9 @@ Utilities and Decorators
call an *Enum*'s :meth:`_generate_next_value_` to get an appropriate value.
For *Enum* and *IntEnum* that appropriate value will be the last value plus
one; for *Flag* and *IntFlag* it will be the first power-of-two greater
than the last value; for *StrEnum* it will be the lower-cased version of the
member's name. Care must be taken if mixing *auto()* with manually specified
values.
than the highest value; for *StrEnum* it will be the lower-cased version of
the member's name. Care must be taken if mixing *auto()* with manually
specified values.
*auto* instances are only resolved when at the top level of an assignment: