Document the change in behaviour of bool(flag_obj)

This commit is contained in:
Jakub Kuczys
2023-05-13 20:13:55 +02:00
committed by GitHub
parent 8d047d9e1d
commit ca0b444047
3 changed files with 66 additions and 0 deletions

View File

@ -119,6 +119,12 @@ class Permissions(BaseFlags):
to be, for example, constructed as a dict or a list of pairs.
Note that aliases are not shown.
.. describe:: bool(b)
Returns whether the permissions object has any permissions set to ``True``.
.. versionadded:: 2.0
Attributes
-----------
value: :class:`int`