MCPcopy Index your code
hub / github.com/ZeroIntensity/pointers.py / wrapped

Function wrapped

src/pointers/decay.py:83–95  ·  view source on GitHub ↗
(*args: P.args, **kwargs: P.kwargs)

Source from the content-addressed store, hash-verified

81
82 @wraps(func)
83 def wrapped(*args: P.args, **kwargs: P.kwargs):
84 hints, actual = _make_func_params(func, args, kwargs)
85
86 for param, hint in hints.items():
87 if get_origin(hint) is not Annotated:
88 continue
89
90 hint_arg = get_args(hint)[1]
91
92 if (hint_arg is Pointer) or (get_origin(hint_arg) is Pointer):
93 actual[param] = to_ptr(actual[param])
94
95 return func(**actual) # type: ignore
96
97 return wrapped
98

Callers

nothing calls this directly

Calls 5

_make_func_paramsFunction · 0.85
to_ptrFunction · 0.85
funcFunction · 0.85
_decay_paramsFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected