diff --git a/qalib/translators/json/embed.py b/qalib/translators/json/embed.py index d5f19be..c7158e6 100644 --- a/qalib/translators/json/embed.py +++ b/qalib/translators/json/embed.py @@ -1,5 +1,5 @@ from datetime import datetime -from typing import Optional, Union +from typing import Optional, Union, List import discord.types.embed @@ -64,7 +64,7 @@ def author(self) -> Optional[components.Author]: class JSONEmbedAdapter(JSONEmbedBaseAdapter, EmbedAdapter): @property - def fields(self) -> list[components.Field]: + def fields(self) -> List[components.Field]: return self._embed.get("fields", [])