Skip to content

Commit 51b0c5c

Browse files
committed
docs-ish
1 parent 811de70 commit 51b0c5c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/pyff/pipes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424

2525

2626
def pipe(*args, **kwargs) -> Callable:
27+
"""
28+
A decorator that registers a function as a pipeline in pyFF. Functions decorated *should* have the
29+
following prototype:
30+
31+
@pipe
32+
def foo(req: Plumbing.Request, *opts)
33+
pass
34+
"""
35+
2736
def pipe_decorator(f: Callable) -> Callable:
2837
if 'name' in kwargs: # called with the name argument @pipe(name=...) or as @pipe()
2938
f_name = kwargs.get('name', f.__name__)

0 commit comments

Comments
 (0)