improve type signature of visitor
This commit is contained in:
parent
72e5800604
commit
3edd920b0d
|
@ -94,7 +94,7 @@ class JobShopVisitor(arpeggio.PTNodeVisitor):
|
|||
print("problem_data\nchildren:", children)
|
||||
# filter out newlines or other strings
|
||||
cleaned_data = list(filter(lambda x: type(x) is not str, children))
|
||||
problem_data: List[List] = [ cleaned_data[i] for i in range(2, len(cleaned_data))]
|
||||
problem_data: List[List[Tuple[int, int]]] = [ cleaned_data[i] for i in range(2, len(cleaned_data))]
|
||||
problem = JobShopProblem(children[0], children[1], problem_data)
|
||||
if self.debug:
|
||||
print("\nreturning a", type(problem), "\n")
|
||||
|
|
Loading…
Reference in a new issue