MCPcopy Index your code
hub / github.com/prometheus/client_python / getargspec

Function getargspec

prometheus_client/decorator.py:78–81  ·  view source on GitHub ↗

A replacement for inspect.getargspec

(f)

Source from the content-addressed store, hash-verified

76
77
78def getargspec(f):
79 """A replacement for inspect.getargspec"""
80 spec = getfullargspec(f)
81 return ArgSpec(spec.args, spec.varargs, spec.varkw, spec.defaults)
82
83
84DEF = re.compile(r'\s*def\s*([_\w][_\w\d]*)\s*\(')

Calls 1

getfullargspecClass · 0.85