Debian Codegraph @

doc/samples/custom_task_def.py

raw symbols SCIP
1 def make_task(func):
2 """make decorated function a task-creator"""
3 func.create_doit_tasks = func
4 return func
5
6 @make_task
7 def sample():
8 return {
9 'verbosity': 2,
10 'actions': ['echo hi'],
11 }