Added docstring to django.utils.inspect.func_accepts_kwargs().
This commit is contained in:
parent
5a434677a7
commit
ef39a8829b
|
@ -40,6 +40,7 @@ def get_func_full_args(func):
|
||||||
|
|
||||||
|
|
||||||
def func_accepts_kwargs(func):
|
def func_accepts_kwargs(func):
|
||||||
|
"""Return True if function 'func' accepts keyword arguments **kwargs."""
|
||||||
return any(
|
return any(
|
||||||
p for p in _get_signature(func).parameters.values()
|
p for p in _get_signature(func).parameters.values()
|
||||||
if p.kind == p.VAR_KEYWORD
|
if p.kind == p.VAR_KEYWORD
|
||||||
|
|
Loading…
Reference in New Issue