def has_varargs(func): """ Returns: whether the func accepts *args """ return has_parameter_kind(func, inspect.Parameter.VAR_POSITIONAL)