]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136842)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 19 Jul 2025 19:01:42 +0000 (21:01 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Jul 2025 19:01:42 +0000 (12:01 -0700)
gh-136764: improve comment in enum.verify.__call__ (GH-136774)
(cherry picked from commit 6a1c93af806d0ca5d3fb86cd183d00013bbf28d1)

Co-authored-by: Saurav Singh <sauravsinghshakya@yahoo.com>
Lib/enum.py

index e9fc1a7fa734658a9833a95d996507b76ece439e..51074404af324ce3e1046adae451628c7b4cfe9a 100644 (file)
@@ -1979,7 +1979,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)