Skip to content

Commit

Permalink
[3.13] pythongh-123005: Add version added in enum.Flag.__len__ (pytho…
Browse files Browse the repository at this point in the history
…nGH-123007) (python#123026)

pythongh-123005: Add version added in enum.Flag.__len__ (pythonGH-123007)
(cherry picked from commit 8e2dc7f)

Co-authored-by: Damien <[email protected]>
  • Loading branch information
miss-islington and Damien-Chen authored Aug 14, 2024
1 parent 8644014 commit 79452b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ Data Types
>>> len(white)
3

.. versionadded:: 3.11

.. method:: __bool__(self):

Returns *True* if any members in flag, *False* otherwise::
Expand Down

0 comments on commit 79452b1

Please sign in to comment.