Skip to content

Commit

Permalink
Add type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yutaro-oguri committed Dec 4, 2023
1 parent d352a31 commit a71874e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kannon/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit a71874e

Please sign in to comment.