MCPcopy
hub / github.com/benoitc/gunicorn / get_arity

Function get_arity

gunicorn/util.py:135–143  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

133
134
135def get_arity(f):
136 sig = inspect.signature(f)
137 arity = 0
138
139 for param in sig.parameters.values():
140 if param.kind in positionals:
141 arity += 1
142
143 return arity
144
145
146def get_username(uid):

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected