From e3e234cf7371891dc4856cfb53efae7fd442e22f Mon Sep 17 00:00:00 2001 From: blord0 Date: Wed, 18 Jun 2025 02:46:43 +0100 Subject: [PATCH] Fix circular import issues --- discord/clan.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/discord/clan.py b/discord/clan.py index fddf17f86..6d0c01f87 100644 --- a/discord/clan.py +++ b/discord/clan.py @@ -23,14 +23,13 @@ DEALINGS IN THE SOFTWARE. """ from typing import TYPE_CHECKING +from datetime import datetime from .asset import Asset from .utils import snowflake_time +from .types.clan import Clan as ClanPayload if TYPE_CHECKING: - from datetime import datetime - - from .types.clan import Clan as ClanPayload from .state import ConnectionState @@ -50,7 +49,7 @@ class Clan: _badge: str _state: ConnectionState - def __init__(self, *, state: ConnectionState, data: ClanPayload) -> None: + def __init__(self, *, state, data: ClanPayload) -> None: self._state = state self._update(data) @@ -72,3 +71,9 @@ class Clan: This is when the guild, of that clan tag, was created. """ return snowflake_time(self.guild_id) + + def __repr__(self) -> str: + return ( + f"" + )