mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Remove unused imports
This commit is contained in:
parent
01e2c69b20
commit
0f18d93e47
@ -26,14 +26,7 @@ from __future__ import annotations
|
|||||||
import colorsys
|
import colorsys
|
||||||
import random
|
import random
|
||||||
|
|
||||||
from typing import (
|
from typing import TYPE_CHECKING, Optional, Tuple, Union
|
||||||
TYPE_CHECKING,
|
|
||||||
Any,
|
|
||||||
Callable,
|
|
||||||
Optional,
|
|
||||||
Tuple,
|
|
||||||
Union,
|
|
||||||
)
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing_extensions import Self
|
from typing_extensions import Self
|
||||||
|
@ -45,10 +45,8 @@ if TYPE_CHECKING:
|
|||||||
from discord.user import ClientUser, User
|
from discord.user import ClientUser, User
|
||||||
from discord.voice_client import VoiceProtocol
|
from discord.voice_client import VoiceProtocol
|
||||||
|
|
||||||
from .bot import Bot, AutoShardedBot
|
|
||||||
from .cog import Cog
|
from .cog import Cog
|
||||||
from .core import Command
|
from .core import Command
|
||||||
from .help import HelpCommand
|
|
||||||
from .view import StringView
|
from .view import StringView
|
||||||
|
|
||||||
# fmt: off
|
# fmt: off
|
||||||
|
@ -24,7 +24,7 @@ DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Optional, Any, TYPE_CHECKING, List, Callable, Type, Tuple, Union
|
from typing import Optional, Any, TYPE_CHECKING, List, Callable, Tuple, Union
|
||||||
|
|
||||||
from discord.errors import ClientException, DiscordException
|
from discord.errors import ClientException, DiscordException
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ import threading
|
|||||||
import traceback
|
import traceback
|
||||||
import zlib
|
import zlib
|
||||||
|
|
||||||
from typing import Any, Callable, Coroutine, Deque, Dict, List, TYPE_CHECKING, NamedTuple, Optional, TypeVar, Type
|
from typing import Any, Callable, Coroutine, Deque, Dict, List, TYPE_CHECKING, NamedTuple, Optional, TypeVar
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ DEALINGS IN THE SOFTWARE.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from typing import Any, TYPE_CHECKING, AsyncIterator, Union, Optional
|
from typing import TYPE_CHECKING, AsyncIterator, Union, Optional
|
||||||
|
|
||||||
from .user import User
|
from .user import User
|
||||||
from .object import Object
|
from .object import Object
|
||||||
|
@ -37,8 +37,6 @@ __all__ = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing_extensions import Self
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
from .types.role import (
|
from .types.role import (
|
||||||
Role as RolePayload,
|
Role as RolePayload,
|
||||||
|
@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Literal, Optional, TypedDict, Union
|
from typing import Literal, Optional, TypedDict, Union
|
||||||
from typing_extensions import NotRequired, Required
|
from typing_extensions import NotRequired
|
||||||
|
|
||||||
from .scheduled_event import GuildScheduledEvent
|
from .scheduled_event import GuildScheduledEvent
|
||||||
from .snowflake import Snowflake
|
from .snowflake import Snowflake
|
||||||
|
@ -28,7 +28,6 @@ import asyncio
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
|
||||||
import traceback
|
import traceback
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from typing import TYPE_CHECKING, Any, Dict, Optional, Sequence, ClassVar, List
|
from typing import TYPE_CHECKING, Any, Dict, Optional, Sequence, ClassVar, List
|
||||||
|
@ -24,7 +24,7 @@ DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any, List, Optional, TYPE_CHECKING, Union
|
from typing import List, Optional, TYPE_CHECKING, Union
|
||||||
|
|
||||||
from .utils import snowflake_time, _get_as_snowflake, resolve_invite
|
from .utils import snowflake_time, _get_as_snowflake, resolve_invite
|
||||||
from .user import BaseUser
|
from .user import BaseUser
|
||||||
|
Loading…
x
Reference in New Issue
Block a user