Skip to content

Commit 7393b2a

Browse files
committed
rm yet more funky stuff
1 parent e55961b commit 7393b2a

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

discord/ui/select.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -818,34 +818,29 @@ def uses_label(self) -> bool:
818818
parameter as a :attr:`discord.ComponentType.channel_select`.
819819
"""
820820
else:
821-
class select_partial(partial):
822-
@property
823-
def __class__(self) -> type[Select]:
824-
return Select
825-
826-
StringSelect: Select[V, str] = select_partial(
821+
StringSelect: Select[V, str] = partial(
827822
Select, select_type=ComponentType.string_select
828823
)
829824
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.string_select`
830825
as its default ``select_type``.
831826
"""
832-
UserSelect: Select[V, User | Member] = select_partial(
827+
UserSelect: Select[V, User | Member] = partial(
833828
Select, select_type=ComponentType.user_select
834829
)
835830
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.user_select`
836831
as its default ``select_type``.
837832
"""
838-
RoleSelect: Select[V, Role] = select_partial(Select, select_type=ComponentType.role_select)
833+
RoleSelect: Select[V, Role] = partial(Select, select_type=ComponentType.role_select)
839834
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.role_select`
840835
as its default ``select_type``.
841836
"""
842-
MentionableSelect: Select[V, Role | User | Member] = select_partial(
837+
MentionableSelect: Select[V, Role | User | Member] = partial(
843838
Select, select_type=ComponentType.mentionable_select
844839
)
845840
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.mentionable_select`
846841
as its default ``select_type``.
847842
"""
848-
ChannelSelect: Select[V, GuildChannel | Thread] = select_partial(
843+
ChannelSelect: Select[V, GuildChannel | Thread] = partial(
849844
Select, select_type=ComponentType.channel_select
850845
)
851846
"""An alias for :class:`Select` that will pass :attr:`discord.ComponentType.channel_select`

0 commit comments

Comments
 (0)