[Enum] Improve clarity of comparison sentence (GH-148753)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
This commit is contained in:
Rida Zouga
2026-04-21 18:17:02 +01:00
committed by GitHub
parent 33e82be174
commit 0b9146e90b
+1 -1
View 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)::