Skip to content

Commit f0bf241

Browse files
committed
FIX: Update decorator dunders to allow docstrings and doctests to pass through
1 parent 0f43e66 commit f0bf241

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pydra/mark/functions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,8 @@ def task(func):
4343
def decorate(**kwargs):
4444
return FunctionTask(func=func, **kwargs)
4545

46+
decorate.__module__ = func.__module__
47+
decorate.__name__ = func.__name__
48+
decorate.__doc__ = func.__doc__
49+
4650
return decorate

0 commit comments

Comments
 (0)