fix signature
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user