mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.13] gh-123005: Add version added in enum.Flag.__len__ (GH-123007) (#123026)
gh-123005: Add version added in enum.Flag.__len__ (GH-123007)
(cherry picked from commit 8e2dc7f380
)
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
This commit is contained in:
parent
8644014a35
commit
79452b135c
1 changed files with 2 additions and 0 deletions
|
@ -570,6 +570,8 @@ Data Types
|
|||
>>> len(white)
|
||||
3
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
.. method:: __bool__(self):
|
||||
|
||||
Returns *True* if any members in flag, *False* otherwise::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue