Some typing methods seem not to be supported by Python 3.7, removed them

This commit is contained in:
Frisk 2021-05-22 14:22:23 +02:00
parent 3af943b102
commit 6215cb81bf
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -21,8 +21,7 @@ from typing import Optional, Callable
logger = logging.getLogger("src.api.formatter") logger = logging.getLogger("src.api.formatter")
def _register_formatter(func: Callable[[dict], DiscordMessage], kwargs: dict[str, str], formatter_type: str, def _register_formatter(func, kwargs, formatter_type: str, action_type=None):
action_type: Optional[str]=None):
""" """
Registers a formatter inside of src.rcgcdw.formatter_hooks Registers a formatter inside of src.rcgcdw.formatter_hooks
""" """