1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Added docstring to django.utils.inspect.func_accepts_kwargs().

This commit is contained in:
Adam Johnson 2020-12-14 07:34:35 +01:00 committed by Mariusz Felisiak
parent 5a434677a7
commit ef39a8829b

View File

@ -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