Skip to main content

get_func_full_args

Return a list of (argument name, default value) tuples. If the argument does not have a default value, omit it in the tuple. Arguments such as *args and **kwargs are also included.

def get_func_full_args(
func: callable
) - > list

Return a list of (argument name, default value) tuples. If the argument does not have a default value, omit it in the tuple. Arguments such as *args and **kwargs are also included.

Parameters

NameTypeDescription
funccallableThe function or callable object from which to extract argument names and default values.

Returns

TypeDescription
listA list of tuples where each tuple contains the argument name and optionally its default value if one exists.