Skip to content

Commit f13f5e0

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 6d6ce3e commit f13f5e0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

discord/ui/designer_view.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@
2727

2828
import asyncio
2929
import os
30-
import sys
31-
import time
32-
from functools import partial
3330
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
3532

3633
from ..components import ActionRow as ActionRowComponent
3734
from ..components import Button as ButtonComponent
@@ -47,15 +44,16 @@
4744
from ..components import Thumbnail as ThumbnailComponent
4845
from ..components import _component_factory
4946
from ..utils import find, get
50-
from .item import Item, ItemCallbackType
5147
from .action_row import ActionRow
48+
from .item import Item, ItemCallbackType
5249
from .view import View
5350

5451
__all__ = ("DesignerView", "_component_to_item", "_walk_all_components")
5552

5653

5754
if TYPE_CHECKING:
5855
from typing_extensions import Self
56+
5957
from ..interactions import Interaction, InteractionMessage
6058
from ..message import Message
6159
from ..state import ConnectionState
@@ -325,7 +323,7 @@ def get_item(self, id: str | int) -> Item[V] | None:
325323
if child := i.get_item(id):
326324
return child
327325
return child
328-
326+
329327
__timeout_task_impl = View._View__timeout_task_impl
330328
_expires_at = view._expires_at
331329
_scheduled_task = View._scheduled_task
@@ -374,7 +372,7 @@ def is_components_v2(self) -> bool:
374372
"""Whether the view contains V2 components.
375373
376374
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`
378376
"""
379377
return True
380378

0 commit comments

Comments
 (0)