add typing annotations to get_task_by_job
This commit is contained in:
parent
4204969da9
commit
ae43bd5264
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue