Skip to content

Commit

Permalink
Restoring compatibility with py 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
d-krupke committed Sep 21, 2024
1 parent 8c6f42d commit 624685c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpsat_log_parser/blocks/search_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def parse(line: str) -> typing.Optional["ModelEvent"]:
else:
return None

def _parse_version(lines: list[str]) -> tuple[int, int, int]:
def _parse_version(lines: typing.List[str]) -> typing.Tuple[int, int, int]:
"""
Parse the version of OR-Tools from log lines.
Expand All @@ -200,7 +200,7 @@ def _parse_version(lines: list[str]) -> tuple[int, int, int]:

raise ValueError("Could not parse version from log")

def apply_ortools911_workaround(lines: list[str]) -> list[str]:
def apply_ortools911_workaround(lines: typing.List[str]) -> typing.List[str]:
"""
Workaround for OR-Tools 9.11 to remove empty lines before the search progress block.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pandas>=2.0.0
plotly==5.18.0
streamlit>=1.30.0
ortools

0 comments on commit 624685c

Please sign in to comment.