Skip to content

Commit 2d5b09d

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 9c55296 commit 2d5b09d

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

discord/abc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ def is_member(self) -> bool:
301301
GCH = TypeVar("GCH", bound="GuildChannel")
302302

303303

304-
305304
class GuildChannel:
306305
"""An ABC that details the common operations on a Discord guild channel.
307306

discord/ui/select.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -735,11 +735,19 @@ def uses_label(self) -> bool:
735735
ChannelSelect = Select[V, GuildChannel | Thread]
736736
"""A typed alias for :class:`Select` for channel values."""
737737
else:
738-
StringSelect: Select[V, str] = partial(Select, select_type=ComponentType.string_select)
739-
UserSelect: Select[V, User | Member] = partial(Select, select_type=ComponentType.user_select)
738+
StringSelect: Select[V, str] = partial(
739+
Select, select_type=ComponentType.string_select
740+
)
741+
UserSelect: Select[V, User | Member] = partial(
742+
Select, select_type=ComponentType.user_select
743+
)
740744
RoleSelect: Select[V, Role] = partial(Select, select_type=ComponentType.role_select)
741-
MentionableSelect: Select[V, Role | User | Member] = partial(Select, select_type=ComponentType.mentionable_select)
742-
ChannelSelect: Select[V, GuildChannel | Thread] = partial(Select, select_type=ComponentType.channel_select)
745+
MentionableSelect: Select[V, Role | User | Member] = partial(
746+
Select, select_type=ComponentType.mentionable_select
747+
)
748+
ChannelSelect: Select[V, GuildChannel | Thread] = partial(
749+
Select, select_type=ComponentType.channel_select
750+
)
743751

744752

745753
_select_types = (
@@ -987,7 +995,8 @@ def mentionable_select(
987995
id: int | None = None,
988996
default_values: Sequence[SelectDefaultValue | Snowflake] | None = None,
989997
) -> Callable[
990-
[ItemCallbackType[MentionableSelect[V]]], MentionableSelect[V],
998+
[ItemCallbackType[MentionableSelect[V]]],
999+
MentionableSelect[V],
9911000
]:
9921001
"""A shortcut for :meth:`discord.ui.select` with select type :attr:`discord.ComponentType.mentionable_select`.
9931002

0 commit comments

Comments
 (0)