From 0b9146e90b4969af8cd6ed39c3d97bb71bfc6a7a Mon Sep 17 00:00:00 2001 From: Rida Zouga <96395950+ZougaRida@users.noreply.github.com> Date: Tue, 21 Apr 2026 18:17:02 +0100 Subject: [PATCH] [Enum] Improve clarity of comparison sentence (GH-148753) Co-authored-by: Ethan Furman --- Doc/howto/enum.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst index 5260c2ca4add..2fe5814bb04a 100644 --- a/Doc/howto/enum.rst +++ b/Doc/howto/enum.rst @@ -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):: -- 2.47.3