MCPcopy Create free account
hub / github.com/SplootCode/splootcode / get_func_params

Function get_func_params

python/module_loader.py:38–50  ·  view source on GitHub ↗
(thing)

Source from the content-addressed store, hash-verified

36 return params
37
38def get_func_params(thing):
39 params = []
40 sig = signature(thing)
41 for name in sig.parameters:
42 param = sig.parameters[name]
43 res = {
44 'name': name,
45 'kind': param.kind.name,
46 }
47 if param.default != param.empty:
48 res['default'] = str(param.default)
49 params.append(res)
50 return params
51
52
53def get_value_data(name, thing):

Callers 1

get_value_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected