Skip to content

Commit

Permalink
FIX: Update decorator dunders to allow docstrings and doctests to pas…
Browse files Browse the repository at this point in the history
…s through
  • Loading branch information
effigies committed Mar 1, 2021
1 parent 0f43e66 commit f0bf241
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pydra/mark/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ def task(func):
def decorate(**kwargs):
return FunctionTask(func=func, **kwargs)

decorate.__module__ = func.__module__
decorate.__name__ = func.__name__
decorate.__doc__ = func.__doc__

return decorate

0 comments on commit f0bf241

Please sign in to comment.