]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123005: Add version added in enum.Flag.__len__ (GH-123007)
authorDamien <81557462+Damien-Chen@users.noreply.github.com>
Wed, 14 Aug 2024 20:30:33 +0000 (04:30 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2024 20:30:33 +0000 (13:30 -0700)
Doc/library/enum.rst

index 8b3f397ea862f47db327163a9edef50cd4a69527..0a4246158a5488f9a67f2d2f6678292bf0af0e74 100644 (file)
@@ -570,6 +570,8 @@ Data Types
          >>> len(white)
          3
 
+      .. versionadded:: 3.11
+
    .. method:: __bool__(self):
 
       Returns *True* if any members in flag, *False* otherwise::