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)