From 2d07ec6d72f5f94ae8f57c0a0a4c9a34e781bd5e Mon Sep 17 00:00:00 2001 From: Rida Zouga <96395950+ZougaRida@users.noreply.github.com> Date: Sun, 19 Apr 2026 13:10:35 +0100 Subject: [PATCH] Improve clarity of enum comparison sentence --- 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 5260c2ca4add47..f4eb20ffa7c918 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 +Comparisons against non-enumeration values will always return ``False`` (again, :class:`IntEnum` was explicitly designed to behave differently, see below)::