Skip to content

Commit f30991b

Browse files
committed
docs: minor docstring fixes
1 parent 608b875 commit f30991b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cellseg_models_pytorch/utils/multiproc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ def run_pool(
6666
-------
6767
Union[List[Any], None]:
6868
A list of results or None.
69+
70+
Example
71+
-------
72+
>>> f = myfunc # any function.
73+
>>> args = (1, 2, 3)
74+
>>> res_list = run_pool(f, args)
6975
"""
7076
allowed = ("process", "thread", "serial")
7177
if pooltype not in allowed:

0 commit comments

Comments
 (0)