MCPcopy Index your code
hub / github.com/pathwaycom/pathway / function_spec

Function function_spec

python/pathway/internals/helpers.py:68–76  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

66
67
68def function_spec(fn):
69 fn = inspect.unwrap(fn)
70 fullspec = inspect.getfullargspec(fn)
71 defaults = {}
72 if fullspec.defaults is not None:
73 for index, default in enumerate(reversed(fullspec.defaults)):
74 defaults[fullspec.args[-index - 1]] = default
75 arg_names = fn.__code__.co_varnames[: fn.__code__.co_argcount]
76 return FunctionSpec(fn, arg_names, defaults)
77
78
79def fn_arg_tuple(fn_spec: FunctionSpec, args, kwargs):

Callers 4

desugarFunction · 0.90
_operator_wrapperFunction · 0.90
iterateFunction · 0.90
decoratorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected