From 7e68604b7b16dfaa074337c2ad30c1299e57a93d Mon Sep 17 00:00:00 2001 From: FasterSpeeding Date: Sun, 7 Apr 2024 17:00:09 +0100 Subject: [PATCH] Bump minimum supported python version (#25) --- noxfile.py | 2 +- runner.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/noxfile.py b/noxfile.py index cb4c53d..0d79295 100644 --- a/noxfile.py +++ b/noxfile.py @@ -29,7 +29,7 @@ def freeze_locks(session: nox.Session) -> None: "-o", str(target), "--min-python-version", - "3.8", + "3.11", str(path), ) diff --git a/runner.py b/runner.py index 83c9243..3bf92bb 100644 --- a/runner.py +++ b/runner.py @@ -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} @@ -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"}