Skip to main content

fun_accepts_kwargs

Return true if function accepts arbitrary keyword arguments.

def fun_accepts_kwargs(
fun: callable
) - > boolean

Return true if function accepts arbitrary keyword arguments.

Parameters​

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

Returns​

TypeDescription
booleanTrue if the provided function object accepts variable keyword arguments (**kwargs), otherwise False