|
8 | 8 | import sys |
9 | 9 | import traceback |
10 | 10 | import types |
11 | | -from collections.abc import Callable, Coroutine, Generator, Mapping, Sequence |
12 | | -from datetime import datetime, timedelta |
| 11 | +from collections.abc import Callable, Coroutine |
| 12 | +from datetime import timedelta |
13 | 13 | from errno import ECONNRESET |
14 | 14 | from typing import ( |
15 | 15 | TYPE_CHECKING, |
|
24 | 24 | import aiohttp |
25 | 25 |
|
26 | 26 | from . import abc, utils |
27 | | -from .activity import ActivityTypes, BaseActivity, create_activity |
| 27 | +from .activity import BaseActivity, create_activity |
28 | 28 | from .app_commands import ( |
29 | 29 | APIMessageCommand, |
30 | 30 | APISlashCommand, |
31 | 31 | APIUserCommand, |
32 | | - ApplicationCommand, |
33 | | - GuildApplicationCommandPermissions, |
34 | 32 | ) |
35 | 33 | from .appinfo import AppInfo |
36 | 34 | from .application_role_connection import ApplicationRoleConnectionMetadata |
37 | 35 | from .backoff import ExponentialBackoff |
38 | 36 | from .channel import PartialMessageable, _threaded_channel_factory |
39 | 37 | from .emoji import Emoji |
40 | 38 | from .entitlement import Entitlement |
41 | | -from .enums import ApplicationCommandType, ChannelType, Event, Status |
| 39 | +from .enums import ChannelType, Event, Status |
42 | 40 | from .errors import ( |
43 | 41 | ConnectionClosed, |
44 | 42 | GatewayNotFound, |
|
47 | 45 | PrivilegedIntentsRequired, |
48 | 46 | SessionStartLimitReached, |
49 | 47 | ) |
50 | | -from .flags import ApplicationFlags, Intents, MemberCacheFlags |
51 | 48 | from .gateway import DiscordWebSocket, ReconnectWebSocket |
52 | 49 | from .guild import Guild, GuildBuilder |
53 | 50 | from .guild_preview import GuildPreview |
54 | 51 | from .http import HTTPClient |
55 | | -from .i18n import LocalizationProtocol, LocalizationStore |
| 52 | +from .i18n import LocalizationStore |
56 | 53 | from .invite import Invite |
57 | 54 | from .iterators import EntitlementIterator, GuildIterator |
58 | 55 | from .mentions import AllowedMentions |
59 | 56 | from .object import Object |
60 | 57 | from .sku import SKU |
61 | | -from .soundboard import GuildSoundboardSound, SoundboardSound |
| 58 | +from .soundboard import SoundboardSound |
62 | 59 | from .stage_instance import StageInstance |
63 | 60 | from .state import ConnectionState |
64 | | -from .sticker import GuildSticker, StandardSticker, StickerPack, _sticker_factory |
| 61 | +from .sticker import StickerPack, _sticker_factory |
65 | 62 | from .template import Template |
66 | | -from .threads import Thread |
67 | 63 | from .ui.view import View |
68 | 64 | from .user import ClientUser, User |
69 | 65 | from .utils import MISSING, deprecated |
|
73 | 69 | from .widget import Widget |
74 | 70 |
|
75 | 71 | if TYPE_CHECKING: |
| 72 | + from collections.abc import Generator, Mapping, Sequence |
| 73 | + from datetime import datetime |
| 74 | + |
76 | 75 | from typing_extensions import NotRequired |
77 | 76 |
|
78 | 77 | from .abc import GuildChannel, PrivateChannel, Snowflake, SnowflakeTime |
79 | | - from .app_commands import APIApplicationCommand, MessageCommand, SlashCommand, UserCommand |
| 78 | + from .activity import ActivityTypes |
| 79 | + from .app_commands import ( |
| 80 | + APIApplicationCommand, |
| 81 | + ApplicationCommand, |
| 82 | + GuildApplicationCommandPermissions, |
| 83 | + MessageCommand, |
| 84 | + SlashCommand, |
| 85 | + UserCommand, |
| 86 | + ) |
80 | 87 | from .asset import AssetBytes |
81 | 88 | from .channel import DMChannel |
| 89 | + from .enums import ApplicationCommandType |
| 90 | + from .flags import ApplicationFlags, Intents, MemberCacheFlags |
| 91 | + from .i18n import LocalizationProtocol |
82 | 92 | from .member import Member |
83 | 93 | from .message import Message |
| 94 | + from .soundboard import GuildSoundboardSound |
| 95 | + from .sticker import GuildSticker, StandardSticker |
| 96 | + from .threads import Thread |
84 | 97 | from .types.application_role_connection import ( |
85 | 98 | ApplicationRoleConnectionMetadata as ApplicationRoleConnectionMetadataPayload, |
86 | 99 | ) |
|
0 commit comments