From 6215cb81bfa5d9fc0faf3c3182dff17673527c7c Mon Sep 17 00:00:00 2001 From: Frisk Date: Sat, 22 May 2021 14:22:23 +0200 Subject: [PATCH] Some typing methods seem not to be supported by Python 3.7, removed them --- src/api/formatter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/formatter.py b/src/api/formatter.py index b808c79..c9946a1 100644 --- a/src/api/formatter.py +++ b/src/api/formatter.py @@ -21,8 +21,7 @@ from typing import Optional, Callable logger = logging.getLogger("src.api.formatter") -def _register_formatter(func: Callable[[dict], DiscordMessage], kwargs: dict[str, str], formatter_type: str, - action_type: Optional[str]=None): +def _register_formatter(func, kwargs, formatter_type: str, action_type=None): """ Registers a formatter inside of src.rcgcdw.formatter_hooks """