Skip to content

Commit 41aaf40

Browse files
committed
🏷️ Add typing
1 parent 9a7022b commit 41aaf40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

discord/asset.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
if TYPE_CHECKING:
4040
ValidStaticFormatTypes = Literal["webp", "jpeg", "jpg", "png"]
4141
ValidAssetFormatTypes = Literal["webp", "jpeg", "jpg", "png", "gif"]
42+
from .state import ConnectionState
43+
4244

4345
VALID_STATIC_FORMATS = frozenset({"jpeg", "jpg", "webp", "png"})
4446
VALID_ASSET_FORMATS = VALID_STATIC_FORMATS | {"gif"}
@@ -203,7 +205,7 @@ def _from_avatar_decoration(
203205

204206
@classmethod
205207
def _from_user_primary_guild_tag(
206-
cls, state, identity_guild_id: int, badge_id: str
208+
cls, state: ConnectionState, identity_guild_id: int, badge_id: str
207209
) -> Asset:
208210
"""Creates an Asset for a user's primary guild (tag) badge.
209211

0 commit comments

Comments
 (0)