From 8e2dc7f380c7ffe6b0fe525b4d0558aaed9d7145 Mon Sep 17 00:00:00 2001 From: Damien <81557462+Damien-Chen@users.noreply.github.com> Date: Thu, 15 Aug 2024 04:30:33 +0800 Subject: [PATCH] gh-123005: Add version added in enum.Flag.__len__ (GH-123007) --- Doc/library/enum.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 8b3f397ea86..0a4246158a5 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -570,6 +570,8 @@ Data Types >>> len(white) 3 + .. versionadded:: 3.11 + .. method:: __bool__(self): Returns *True* if any members in flag, *False* otherwise::