diff --git a/src/toil/wdl/wdltoil.py b/src/toil/wdl/wdltoil.py index 176bac9f46..a29d78677a 100755 --- a/src/toil/wdl/wdltoil.py +++ b/src/toil/wdl/wdltoil.py @@ -104,7 +104,7 @@ def decorated(*args: Any, **kwargs: Any) -> Any: Run the decoratee and handle WDL errors. """ with wdl_error_reporter(task, exit=exit, log=log): - return decoratee(*args, **kwargs) # type: ignore + return decoratee(*args, **kwargs) return cast(F, decorated) return decorator