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

Class getfullargspec

prometheus_client/decorator.py:52–67  ·  view source on GitHub ↗

A quick and dirty replacement for getfullargspec for Python 2.X

Source from the content-addressed store, hash-verified

50 return cls.__init__
51else:
52 class getfullargspec(object):
53 "A quick and dirty replacement for getfullargspec for Python 2.X"
54
55 def __init__(self, f):
56 self.args, self.varargs, self.varkw, self.defaults = \
57 inspect.getargspec(f)
58 self.kwonlyargs = []
59 self.kwonlydefaults = None
60
61 def __iter__(self):
62 yield self.args
63 yield self.varargs
64 yield self.varkw
65 yield self.defaults
66
67 getargspec = inspect.getargspec
68
69
70 def get_init(cls):

Callers 5

getargspecFunction · 0.85
__init__Method · 0.85
decorator.pyFile · 0.85
gen_func_decFunction · 0.85
decFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected