mirror of
https://github.com/Hopiu/django.git
synced 2026-05-01 20:24:46 +00:00
Added docstring to django.utils.inspect.func_accepts_kwargs().
This commit is contained in:
parent
5a434677a7
commit
ef39a8829b
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue