Skip to content

Commit

Permalink
Making it compatible for Py3.9 again because streamlit runs on that.
Browse files Browse the repository at this point in the history
  • Loading branch information
d-krupke committed Sep 5, 2024
1 parent 97306b2 commit bfe6e6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]
python-version: ["3.9", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions cpsat_log_parser/blocks/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _convert_value(value):
return value # If it cannot be converted to a number, keep as is


def _parse_block(tokens) -> dict:
def _parse_block(tokens) -> typing.Dict:
block_dict = {}
while tokens:
key = tokens.pop(0).strip()
Expand All @@ -49,7 +49,7 @@ def _parse_block(tokens) -> dict:
block_dict[key] = value
return block_dict

def parse_parameters_line(line: str) -> dict[str, str|int|float|bool|list|dict]:
def parse_parameters_line(line: str) -> typing.Dict:
"""Parse the 'Parameters: ' line and return a dictionary of parameters."""
if not line.startswith('Parameters: '):
raise ValueError('The line must begin with "Parameters: "')
Expand Down

0 comments on commit bfe6e6d

Please sign in to comment.