MCPcopy
hub / github.com/django/django / func_accepts_var_args

Function func_accepts_var_args

django/utils/inspect.py:76–80  ·  view source on GitHub ↗

Return True if function 'func' accepts positional arguments *args.

(func)

Source from the content-addressed store, hash-verified

74
75
76def func_accepts_var_args(func):
77 """
78 Return True if function 'func' accepts positional arguments *args.
79 """
80 return any(p for p in _get_callable_parameters(func) if p.kind == p.VAR_POSITIONAL)
81
82
83def method_has_no_args(meth):

Callers 1

get_context_dataMethod · 0.90

Calls 1

_get_callable_parametersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…