Skip to main content

parse_argument_docs

FunctionPrivateSource

v_1: list[DocArgument] = parse_argument_docs(
func: Any,
docstring: Sequence[str],
func_name: str | None = None,
warn_supp: bool = False,
)

(Private) Parse the docstring related to function arguments.

It is a part of parse_func_docs(...). Calling this function direclty is not recommended.

Arguments

Requires

NameTypeRequired
Description
funcAnyA function object to be parsed. It can be a vanilla function or a method.
docstringSequence[str]The line-by-line docstring of all arguments. This value should be provided by an analyzed Section object.
func_namestr | NoneThe function name displayed in messages. If not specified, will automatically infer it.
warn_suppboolA flag. If specified, will not display warning messages. It is used for excluding special/private functions.

Returns

NameType
Description
v_1list[DocArgument]A list of parsed docstrings of all input arguments.