Skip to content

Commit 57a0d98

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 23f296d commit 57a0d98

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

discord/ui/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@
2525
from __future__ import annotations
2626

2727
import asyncio
28-
import os
2928
from itertools import groupby
30-
from typing import TYPE_CHECKING, Any, Callable, Iterator, TypeVar
29+
from typing import TYPE_CHECKING, Any, Callable
3130

3231
from ..components import ActionRow as ActionRowComponent
3332
from ..components import Button as ButtonComponent
@@ -47,7 +46,7 @@
4746
from .item import Item, ItemCallbackType
4847
from .view import View
4948

50-
__all__ = ("ComponentUI")
49+
__all__ = "ComponentUI"
5150

5251

5352
if TYPE_CHECKING:
@@ -58,6 +57,7 @@
5857
from ..state import ConnectionState
5958
from ..types.components import Component as ComponentPayload
6059

60+
6161
class ComponentUI:
6262
"""The base structure for classes that contain :class:`~discord.ui.Item`.
6363
@@ -167,4 +167,4 @@ async def on_timeout(self) -> None:
167167
"""|coro|
168168
169169
A callback that is called when this structure's timeout elapses without being explicitly stopped.
170-
"""
170+
"""

discord/ui/view.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
from ..components import Thumbnail as ThumbnailComponent
4848
from ..components import _component_factory
4949
from ..utils import find
50-
from .item import Item, ItemCallbackType
5150
from .core import ComponentUI
51+
from .item import Item, ItemCallbackType
5252

5353
__all__ = ("BaseView", "View", "DesignerView", "_component_to_item", "_walk_all_components")
5454

@@ -674,7 +674,7 @@ def add_item(self, item: Item[V]) -> Self:
674674
for i in item.children:
675675
self.add_item(i)
676676
return self
677-
677+
678678
super().add_item(item)
679679
self.__weights.add_item(item)
680680
return self

0 commit comments

Comments
 (0)