urbanoctowaddle.example_numpy.module_level_function¶
-
urbanoctowaddle.example_numpy.module_level_function(param1, param2=None, *args, **kwargs)[source]¶ This is an example of a module level function.
Function parameters should be documented in the
Parameterssection. The name of each parameter is required. The type and description of each parameter is optional, but should be included if not obvious.If
*argsor**kwargsare accepted, they should be listed as*argsand**kwargs.The format for a parameter is:
name : type description The description may span multiple lines. Following lines should be indented to match the first line of the description. The ": type" is optional. Multiple paragraphs are supported in parameter descriptions.
Parameters: - param1 (int) – The first parameter.
- param2 (
str, optional) – The second parameter. - *args – Variable length argument list.
- **kwargs – Arbitrary keyword arguments.
Returns: True if successful, False otherwise.
The return type is not optional. The
Returnssection may span multiple lines and paragraphs. Following lines should be indented to match the first line of the description.The
Returnssection supports any reStructuredText formatting, including literal blocks:{ 'param1': param1, 'param2': param2 }
Return type: bool
Raises: AttributeError– TheRaisessection is a list of all exceptions that are relevant to the interface.ValueError– If param2 is equal to param1.