ubuiltins.bool: Use arguments.

https://github.com/pybricks/pybricks-api/issues/82
This commit is contained in:
Laurens Valk
2021-08-05 12:49:44 +02:00
parent 572b573d2f
commit 786770cff2
+7 -3
View File
@@ -113,10 +113,14 @@ class bool:
def __init__(self, *args) -> None:
"""
Creates a boolean value, which is ``True`` or ``False``.
Creates a boolean value, which is either ``True`` or ``False``.
The argument is converted using the standard truth testing procedure.
If no argument is given, it returns ``False``.
Arguments:
x: Value that is tested for being ``True`` or ``False``. It is
converted using the standard truth testing procedure.
Returns:
Result of the truth-test. If no object is given, it returns ``False``.
"""