Skip to content

Commit

Permalink
Bump minimum supported python version (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding authored Apr 7, 2024
1 parent 967b378 commit 7e68604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def freeze_locks(session: nox.Session) -> None:
"-o",
str(target),
"--min-python-version",
"3.8",
"3.11",
str(path),
)

Expand Down
6 changes: 3 additions & 3 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _poll(
webhook_url: str,
tracker_path: pathlib.Path,
api_url: str,
params: typing.Dict[str, str],
params: dict[str, str],
last_update: str,
) -> str:
params = {**params, "since": last_update}
Expand Down Expand Up @@ -121,13 +121,13 @@ def main(
tracker_path: pathlib.Path,
period: int,
api_url: str,
params: typing.Optional[pathlib.Path],
params: pathlib.Path | None,
):
logging.basicConfig(level="INFO", format="%(asctime)23.23s %(levelname)1.1s %(message)s")

if params:
with params.open("r") as file:
params_dict: typing.Dict[str, str] = json.load(file)
params_dict: dict[str, str] = json.load(file)

else:
params_dict = {"sha": "main"}
Expand Down

0 comments on commit 7e68604

Please sign in to comment.