def has_kwargs(func): """ Returns: whether the func accepts **kwargs """ return has_parameter_kind(func, inspect.Parameter.VAR_KEYWORD)