in src/pydolphinscheduler/tasks/func_wrap.py [0:0]
def _exists_other_decorator(func: types.FunctionType) -> None:
"""Check if the function has other decorators except @task.
:param func: The function which wraps by decorator ``@task``.
"""
lines = inspect.getsourcelines(func)[0]
for line in lines:
strip_line = line.strip()
if strip_line.startswith("@") and not strip_line == "@task":
raise PyDSParamException(
"Do no support other decorators for function ``task`` decorator."
)