From ef39a8829b6a81116876fe97cff8de6b8ec15f49 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 14 Dec 2020 07:34:35 +0100 Subject: [PATCH] Added docstring to django.utils.inspect.func_accepts_kwargs(). --- django/utils/inspect.py | 1 + 1 file changed, 1 insertion(+) 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