Browse Source

chore: remove unused imports & run black

pull/10166/head
DA-344 1 month ago
parent
commit
7e071ff3c9
  1. 1
      discord/ui/button.py
  2. 6
      discord/ui/container.py
  3. 1
      discord/ui/select.py

1
discord/ui/button.py

@ -43,7 +43,6 @@ if TYPE_CHECKING:
from typing_extensions import Self
from .view import BaseView
from .action_row import ActionRow
from ..emoji import Emoji
from ..types.components import ButtonComponent as ButtonComponentPayload

6
discord/ui/container.py

@ -326,11 +326,7 @@ class Container(Item[V]):
spoiler=component.spoiler,
id=component.id,
)
self._children = [
_component_to_item(
cmp, self
) for cmp in component.children
]
self._children = [_component_to_item(cmp, self) for cmp in component.children]
return self
def walk_children(self) -> Generator[Item[V], None, None]:

1
discord/ui/select.py

@ -73,7 +73,6 @@ if TYPE_CHECKING:
from typing_extensions import TypeAlias, TypeGuard
from .view import BaseView
from .action_row import ActionRow
from ..types.components import SelectMenu as SelectMenuPayload
from ..types.interactions import SelectMessageComponentInteractionData
from ..app_commands import AppCommandChannel, AppCommandThread

Loading…
Cancel
Save