Skip to content

Commit

Permalink
🐛 fix backwards incompatibility type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefEZ committed Dec 21, 2023
1 parent 89a2d6b commit 052dc1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qalib/translators/json/embed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime
from typing import Optional, Union
from typing import Optional, Union, List

import discord.types.embed

Expand Down Expand Up @@ -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", [])


Expand Down

0 comments on commit 052dc1b

Please sign in to comment.