Skip to main content

func_accepts_kwargs

Return True if function 'func' accepts keyword arguments **kwargs.

def func_accepts_kwargs(
func: callable
) - > boolean

Return True if function 'func' accepts keyword arguments **kwargs.

Parameters

NameTypeDescription
funccallableThe function or callable object to inspect for keyword argument support

Returns

TypeDescription
booleanTrue if the callable accepts variable keyword arguments (**kwargs), otherwise False