Skip to main content

func_accepts_var_args

Return True if function 'func' accepts positional arguments *args.

def func_accepts_var_args(
func: callable
) - > boolean

Return True if function 'func' accepts positional arguments *args.

Parameters

NameTypeDescription
funccallableThe function or callable object to inspect for variable positional argument support

Returns

TypeDescription
booleanTrue if the callable accepts a variable number of positional arguments (*args), False otherwise