diff --git a/twitch_hdt_ebs/views.py b/twitch_hdt_ebs/views.py index a40bc25..9e386a1 100644 --- a/twitch_hdt_ebs/views.py +++ b/twitch_hdt_ebs/views.py @@ -5,7 +5,7 @@ import logging import string from collections import defaultdict -from typing import Any, Dict, List, Optional +from typing import Any, Dict, List, Optional, Union import jwt from allauth.socialaccount.models import SocialAccount @@ -206,7 +206,7 @@ def cache_deck_data(self, data, version: int, config: dict) -> bool: cards_list.sort() - sideboards = defaultdict(list) + sideboards: Union[dict, defaultdict] = defaultdict(list) for owner_dbf_id, dbf_id, _, initial in deck_data.get("sideboards", []): for i in range(initial):