improve type signature of visitor

parser
Trolli Schmittlauch 2017-06-29 22:28:23 +02:00
parent 72e5800604
commit 3edd920b0d
1 changed files with 1 additions and 1 deletions

View File

@ -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")