diff --git a/django/utils/inspect.py b/django/utils/inspect.py index 9a7eb21647..567efcbc17 100644 --- a/django/utils/inspect.py +++ b/django/utils/inspect.py @@ -40,6 +40,7 @@ def get_func_full_args(func): def func_accepts_kwargs(func): + """Return True if function 'func' accepts keyword arguments **kwargs.""" return any( p for p in _get_signature(func).parameters.values() if p.kind == p.VAR_KEYWORD