ubuiltins: Document max, min.

This commit is contained in:
Laurens Valk
2022-11-28 14:41:29 +01:00
parent e009ff2cbc
commit cd2e53f70b
+18 -2
View File
@@ -745,7 +745,15 @@ def max(arg1: Any, arg2: Any, *args: Any) -> Any:
def max(*args):
"""
Returns the largest item in an iterable or the largest of two or more arguments.
max(iterable) -> Any
max(arg1, arg2, ....) -> Any
Gets the object with largest value.
The argument may be a single iterable, or any number of objects.
Returns:
The object with the largest value.
"""
@@ -761,7 +769,15 @@ def min(arg1: Any, arg2: Any, *args: Any) -> Any:
def min(*args):
"""
Returns the smallest item in an iterable or the smallest of two or more arguments.
min(iterable) -> Any
min(arg1, arg2, ....) -> Any
Gets the object with smallest value.
The argument may be a single iterable, or any number of objects.
Returns:
The object with the smallest value.
"""