]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-123005: Add version added in enum.Flag.__len__ (GH-123007) (#123025)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 14 Aug 2024 21:30:44 +0000 (23:30 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2024 21:30:44 +0000 (22:30 +0100)
gh-123005: Add version added in enum.Flag.__len__ (GH-123007)
(cherry picked from commit 8e2dc7f380c7ffe6b0fe525b4d0558aaed9d7145)

Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Doc/library/enum.rst

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