From c8f7bb0770f04d7669e7b189834f923c64cefeb0 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Tue, 3 Jan 2023 23:08:50 +0100 Subject: [PATCH] [Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709) (cherry picked from commit 64ed609c532a12b27f67a1e12e9e02f136ee3a94) Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> --- Doc/library/enum.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index b7b4b949790be3..26cee1a13acf94 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -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: