MCPcopy Index your code
hub / github.com/pallets/click / processor

Function processor

examples/imagepipe/imagepipe.py:42–53  ·  view source on GitHub ↗

Helper decorator to rewrite a function so that it returns another function from it.

(f)

Source from the content-addressed store, hash-verified

40
41
42def processor(f):
43 """Helper decorator to rewrite a function so that it returns another
44 function from it.
45 """
46
47 def new_func(*args, **kwargs):
48 def processor(stream):
49 return f(stream, *args, **kwargs)
50
51 return processor
52
53 return update_wrapper(new_func, f)
54
55
56def generator(f):

Callers 1

process_commandsFunction · 0.70

Calls 1

fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…