From 418eca764e6d56d052b74c9781c083ed7d68fbd3 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Wed, 6 Apr 2022 12:50:20 +1000 Subject: [PATCH] use functools.wraps in task decorator --- pydra/mark/functions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pydra/mark/functions.py b/pydra/mark/functions.py index 25829bd365..6830b3b34c 100644 --- a/pydra/mark/functions.py +++ b/pydra/mark/functions.py @@ -1,4 +1,5 @@ """ Decorators to apply to functions used in Pydra workflows """ +from functools import wraps def annotate(annotation): @@ -40,6 +41,7 @@ def task(func): """ from ..engine.task import FunctionTask + @wraps(func) def decorate(**kwargs): return FunctionTask(func=func, **kwargs)