Skip to content

Commit

Permalink
use functools.wraps in task decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Apr 6, 2022
1 parent 92bc8c3 commit 418eca7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydra/mark/functions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Decorators to apply to functions used in Pydra workflows """
from functools import wraps


def annotate(annotation):
Expand Down Expand Up @@ -40,6 +41,7 @@ def task(func):
"""
from ..engine.task import FunctionTask

@wraps(func)
def decorate(**kwargs):
return FunctionTask(func=func, **kwargs)

Expand Down

0 comments on commit 418eca7

Please sign in to comment.