MCPcopy
hub / github.com/pallets/click / new_func

Function new_func

src/click/decorators.py:33–34  ·  view source on GitHub ↗
(*args: P.args, **kwargs: P.kwargs)

Source from the content-addressed store, hash-verified

31 """
32
33 def new_func(*args: P.args, **kwargs: P.kwargs) -> R:
34 return f(get_current_context(), *args, **kwargs)
35
36 return update_wrapper(new_func, f)
37

Callers

nothing calls this directly

Calls 5

get_current_contextFunction · 0.85
ensure_objectMethod · 0.80
find_objectMethod · 0.80
fFunction · 0.50
invokeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…