From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 19 Jul 2025 18:00:15 +0000 (+0200) Subject: [3.14] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136841) X-Git-Tag: v3.14.0rc1~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=197f3eca2a48dfa28533645029a926f241e0f25d;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136841) gh-136764: improve comment in enum.verify.__call__ (GH-136774) (cherry picked from commit 6a1c93af806d0ca5d3fb86cd183d00013bbf28d1) Co-authored-by: Saurav Singh --- diff --git a/Lib/enum.py b/Lib/enum.py index 01fecca3e5aa..8a72c409b94a 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -1965,7 +1965,7 @@ class verify: if 2**i not in values: missing.append(2**i) elif enum_type == 'enum': - # check for powers of one + # check for missing consecutive integers for i in range(low+1, high): if i not in values: missing.append(i)