]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Enum] Improve clarity of comparison sentence (GH-148753)
authorRida Zouga <96395950+ZougaRida@users.noreply.github.com>
Tue, 21 Apr 2026 17:17:02 +0000 (18:17 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Apr 2026 17:17:02 +0000 (10:17 -0700)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Doc/howto/enum.rst

index 5260c2ca4add4717524ab583465f75954c9f49bc..2fe5814bb04a73656b2e0dc1cd844f682291b763 100644 (file)
@@ -371,7 +371,7 @@ Equality comparisons are defined though::
     >>> Color.BLUE == Color.BLUE
     True
 
-Comparisons against non-enumeration values will always compare not equal
+Equality comparisons against non-enumeration values will always return ``False``
 (again, :class:`IntEnum` was explicitly designed to behave differently, see
 below)::