add typing annotations to get_task_by_job

mapping_problem_helper
Trolli Schmittlauch 2017-07-09 17:20:07 +02:00
parent 4204969da9
commit ae43bd5264
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class JobShopProblem(Mapping):
def __len__(self) -> int:
return sum(map(len, self.problem_data))
def get_tasks_by_job(self, job):
def get_tasks_by_job(self, job: int) -> List[Tuple[int, int]]:
return self.problem_data[job]
class JobShopVisitor(arpeggio.PTNodeVisitor):