Remove duplicate asyncio import and sort (#35)

This commit is contained in:
Slipstream 2025-06-10 18:24:43 -06:00 committed by GitHub
parent 09c2b3e0cf
commit d074839a29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,12 +4,12 @@
Data models for Discord objects. Data models for Discord objects.
""" """
import asyncio
import json import json
import asyncio
import aiohttp # pylint: disable=import-error
import asyncio
from typing import Any, AsyncIterator, Dict, List, Optional, TYPE_CHECKING, Union from typing import Any, AsyncIterator, Dict, List, Optional, TYPE_CHECKING, Union
import aiohttp # pylint: disable=import-error
from .color import Color
from .errors import DisagreementException, HTTPException from .errors import DisagreementException, HTTPException
from .enums import ( # These enums will need to be defined in disagreement/enums.py from .enums import ( # These enums will need to be defined in disagreement/enums.py
VerificationLevel, VerificationLevel,
@ -25,7 +25,6 @@ from .enums import ( # These enums will need to be defined in disagreement/enum
# SelectMenuType will be part of ComponentType or a new enum if needed # SelectMenuType will be part of ComponentType or a new enum if needed
) )
from .permissions import Permissions from .permissions import Permissions
from .color import Color
if TYPE_CHECKING: if TYPE_CHECKING:
@ -1087,7 +1086,6 @@ class TextChannel(Channel):
) )
self.last_pin_timestamp: Optional[str] = data.get("last_pin_timestamp") self.last_pin_timestamp: Optional[str] = data.get("last_pin_timestamp")
def history( def history(
self, self,
*, *,
@ -1143,7 +1141,6 @@ class TextChannel(Channel):
self._client._messages.pop(mid, None) self._client._messages.pop(mid, None)
return ids return ids
def __repr__(self) -> str: def __repr__(self) -> str:
return f"<TextChannel id='{self.id}' name='{self.name}' guild_id='{self.guild_id}'>" return f"<TextChannel id='{self.id}' name='{self.name}' guild_id='{self.guild_id}'>"