From 05094dd86568cf17dae4316e0ee0fb39c906a7d3 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 5 May 2022 12:03:03 +0300 Subject: [PATCH] Fix Task.init() return type should always be considered to be a Task object (usage should be transparent) --- clearml/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/task.py b/clearml/task.py index 49b70ac5..de93ba75 100644 --- a/clearml/task.py +++ b/clearml/task.py @@ -216,7 +216,7 @@ class Task(_Task): auto_connect_streams=True, # type: Union[bool, Mapping[str, bool]] wait_for_task_init=True, # type: bool ): - # type: (...) -> Union[Task, FutureCaller[Task]] + # type: (...) -> Task """ Creates a new Task (experiment) if: