From 4d7608537dd76bfb99b7c9415521bb3458c092c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Sp=C3=B6rk?= Date: Sat, 23 Nov 2024 00:14:39 +0100 Subject: [PATCH] Fix tests --- foosball/hooks/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foosball/hooks/web.py b/foosball/hooks/web.py index 0d3ecd5..743f2d0 100644 --- a/foosball/hooks/web.py +++ b/foosball/hooks/web.py @@ -1,7 +1,7 @@ import logging import os import threading -from typing import Mapping, Self +from typing import Mapping import urllib3 import yaml @@ -43,7 +43,7 @@ def call(method: str, url: str, json: dict = None, headers: Mapping[str, str] = logging.error(f"Webhook failed - {e}") @classmethod - def load_webhook(cls, filename: str) -> Self: + def load_webhook(cls, filename: str): if os.path.isfile(filename): with open(filename, 'r') as f: wh = yaml.safe_load(f)