|
27 | 27 |
|
28 | 28 | import asyncio
|
29 | 29 | import os
|
30 |
| -import sys |
31 |
| -import time |
32 |
| -from functools import partial |
33 | 30 | from itertools import groupby
|
34 |
| -from typing import TYPE_CHECKING, Any, Callable, ClassVar, Iterator, Sequence, TypeVar |
| 31 | +from typing import TYPE_CHECKING, Any, Callable, Iterator, TypeVar |
35 | 32 |
|
36 | 33 | from ..components import ActionRow as ActionRowComponent
|
37 | 34 | from ..components import Button as ButtonComponent
|
|
47 | 44 | from ..components import Thumbnail as ThumbnailComponent
|
48 | 45 | from ..components import _component_factory
|
49 | 46 | from ..utils import find, get
|
50 |
| -from .item import Item, ItemCallbackType |
51 | 47 | from .action_row import ActionRow
|
| 48 | +from .item import Item, ItemCallbackType |
52 | 49 | from .view import View
|
53 | 50 |
|
54 | 51 | __all__ = ("DesignerView", "_component_to_item", "_walk_all_components")
|
55 | 52 |
|
56 | 53 |
|
57 | 54 | if TYPE_CHECKING:
|
58 | 55 | from typing_extensions import Self
|
| 56 | + |
59 | 57 | from ..interactions import Interaction, InteractionMessage
|
60 | 58 | from ..message import Message
|
61 | 59 | from ..state import ConnectionState
|
@@ -325,7 +323,7 @@ def get_item(self, id: str | int) -> Item[V] | None:
|
325 | 323 | if child := i.get_item(id):
|
326 | 324 | return child
|
327 | 325 | return child
|
328 |
| - |
| 326 | + |
329 | 327 | __timeout_task_impl = View._View__timeout_task_impl
|
330 | 328 | _expires_at = view._expires_at
|
331 | 329 | _scheduled_task = View._scheduled_task
|
@@ -374,7 +372,7 @@ def is_components_v2(self) -> bool:
|
374 | 372 | """Whether the view contains V2 components.
|
375 | 373 |
|
376 | 374 | A view containing V2 components cannot be sent alongside message content or embeds.
|
377 |
| - This always returns ``True`` in :class:`DesignerView`, regardless of its :attr:`items` |
| 375 | + This always returns ``True`` in :class:`DesignerView`, regardless of its :attr:`items` |
378 | 376 | """
|
379 | 377 | return True
|
380 | 378 |
|
|
0 commit comments