]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136841)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 19 Jul 2025 18:00:15 +0000 (20:00 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Jul 2025 18:00:15 +0000 (11:00 -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 01fecca3e5aac02190244f94307286dfb760269e..8a72c409b94a8cac978aebccc5f115c5f208ffaa 100644 (file)
@@ -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)