Skip to content

Commit 3a3e4bb

Browse files
authored
Merge pull request #533 from tclose/functool-wraps-task-decorator
Use functools.wraps in task decorator
2 parents 92bc8c3 + 418eca7 commit 3a3e4bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydra/mark/functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
""" Decorators to apply to functions used in Pydra workflows """
2+
from functools import wraps
23

34

45
def annotate(annotation):
@@ -40,6 +41,7 @@ def task(func):
4041
"""
4142
from ..engine.task import FunctionTask
4243

44+
@wraps(func)
4345
def decorate(**kwargs):
4446
return FunctionTask(func=func, **kwargs)
4547

0 commit comments

Comments
 (0)