mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
[Enum] Improve clarity of comparison sentence (GH-148753)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
This commit is contained in:
+1
-1
@@ -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)::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user