ubuiltins: Document help.

This commit is contained in:
Laurens Valk
2022-11-28 15:37:20 +01:00
parent d1081229b3
commit f6f87fec95
+10 -2
View File
@@ -565,8 +565,16 @@ def help(object: Any) -> None:
def help(*args) -> None:
"""
Prints help for the ``object``. If no argument is given, prints general help.
If object is ``'modules'``, prints available modules.
help()
help(object)
Get information about an object.
If no arguments are given, this function prints instructions to operate the
REPL. If the argument is ``"modules"``, it prints the available modules.
Arguments:
object: Object for which to print help information.
"""