From a71874eb78a89238137bdeb3e235ca3d7190ccb5 Mon Sep 17 00:00:00 2001 From: yutaro-oguri Date: Mon, 4 Dec 2023 15:06:11 +0900 Subject: [PATCH] Add type annotation --- kannon/master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kannon/master.py b/kannon/master.py index 155c4bc..c3a122f 100644 --- a/kannon/master.py +++ b/kannon/master.py @@ -175,7 +175,7 @@ def _gen_task_info(task: gokart.TaskOnKart) -> str: def _gen_pkl_path(task: gokart.TaskOnKart) -> str: return os.path.join(task.workspace_directory, 'kannon', f'task_obj_{task.make_unique_id()}.pkl') - def _check_child_task_status(self, task: TaskOnBullet): + def _check_child_task_status(self, task: TaskOnBullet) -> None: if task.make_unique_id() not in self.task_id_to_job_name: raise ValueError(f"Task {self._gen_task_info(task)} is not found in `task_id_to_job_name`") job_name = self.task_id_to_job_name[task.make_unique_id()]