Fix Task.init() return type should always be considered to be a Task object (usage should be transparent)

This commit is contained in:
allegroai 2022-05-05 12:03:03 +03:00
parent 4ccb357de4
commit 05094dd865

View File

@ -216,7 +216,7 @@ class Task(_Task):
auto_connect_streams=True, # type: Union[bool, Mapping[str, bool]] auto_connect_streams=True, # type: Union[bool, Mapping[str, bool]]
wait_for_task_init=True, # type: bool wait_for_task_init=True, # type: bool
): ):
# type: (...) -> Union[Task, FutureCaller[Task]] # type: (...) -> Task
""" """
Creates a new Task (experiment) if: Creates a new Task (experiment) if: