Open kasium opened 8 months ago
When using @task, the decorated function loses it's docstring, because internally a functools.wraps is missing here https://github.com/pyinvoke/invoke/blob/edbb0b11b92452201c6516562140a20a2502a413/invoke/tasks.py#L353-L358
@task
functools.wraps
Easy to fix:
@wraps(body) def inner(body: Callable) -> Task[T]: _task = klass(body, **kwargs) return _task
Dupe of #555
When using
@task
, the decorated function loses it's docstring, because internally afunctools.wraps
is missing here https://github.com/pyinvoke/invoke/blob/edbb0b11b92452201c6516562140a20a2502a413/invoke/tasks.py#L353-L358Easy to fix: