fix signature

This commit is contained in:
2021-10-26 19:24:44 +02:00
parent da2d8c8f82
commit 808bd4785c
+2
View File
@@ -1,7 +1,9 @@
from functools import wraps
from slic.utils import forwards_to
def task_producer(obj, func):
@forwards_to(func, nfilled=1) # nfilled=1 to remove self
@wraps(func)
def wrapper(*args, hold=False, **kwargs):
filled_func = lambda: func(*args, **kwargs)