From d074839a298beaef5c7c8eb4c332d7e8aac62cc4 Mon Sep 17 00:00:00 2001 From: Slipstream Date: Tue, 10 Jun 2025 18:24:43 -0600 Subject: [PATCH] Remove duplicate asyncio import and sort (#35) --- disagreement/models.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/disagreement/models.py b/disagreement/models.py index 1f6e9fc..1b28207 100644 --- a/disagreement/models.py +++ b/disagreement/models.py @@ -4,12 +4,12 @@ Data models for Discord objects. """ +import asyncio import json -import asyncio -import aiohttp # pylint: disable=import-error -import asyncio 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 .enums import ( # These enums will need to be defined in disagreement/enums.py 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 ) from .permissions import Permissions -from .color import Color if TYPE_CHECKING: @@ -1087,7 +1086,6 @@ class TextChannel(Channel): ) self.last_pin_timestamp: Optional[str] = data.get("last_pin_timestamp") - def history( self, *, @@ -1143,7 +1141,6 @@ class TextChannel(Channel): self._client._messages.pop(mid, None) return ids - def __repr__(self) -> str: return f""