From c3dfa4cee9876501a2646a27386f36223d866466 Mon Sep 17 00:00:00 2001 From: FasterSpeeding Date: Sun, 7 Apr 2024 16:54:42 +0100 Subject: [PATCH] Update runner.py --- runner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"}