Skip to content

Commit

Permalink
chore: remove type hints for consistency
Browse files Browse the repository at this point in the history
Signed-off-by: Dorukyum <[email protected]>
  • Loading branch information
Dorukyum authored Aug 21, 2024
1 parent cf9f2f2 commit 28500ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ def _from_guild_avatar(
def _from_guild_banner(
cls, state, guild_id: int, member_id: int, banner: str
) -> Asset:
animated: bool = banner.startswith("a_")
format: str = "gif" if animated else "png"
animated = banner.startswith("a_")
format = "gif" if animated else "png"
return cls(
state,
url=f"{cls.BASE}/guilds/{guild_id}/users/{member_id}/banners/{banner}.{format}?size=1024",
Expand Down

0 comments on commit 28500ce

Please sign in to comment.