Skip to content

Commit 512ecb0

Browse files
committed
docs and typings errors
1 parent f56f107 commit 512ecb0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

discord/ui/select.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import inspect
2929
import os
30+
import sys
3031
from collections.abc import Sequence
3132
from typing import TYPE_CHECKING, Any, Callable, Generic, TypeVar
3233

@@ -64,7 +65,10 @@
6465

6566
ST = TypeVar("ST", bound=Snowflake | str, covariant=True, default=Any)
6667
else:
67-
ST = TypeVar("ST", bound="Snowflake | str", covariant=True)
68+
if sys.version_info >= (3, 13):
69+
ST = TypeVar("ST", bound="Snowflake | str", covariant=True, default=Any)
70+
else:
71+
ST = TypeVar("ST", bound="Snowflake | str", covariant=True)
6872

6973
S = TypeVar("S", bound="Select")
7074
V = TypeVar("V", bound="View", covariant=True)
@@ -114,7 +118,7 @@ class Select(Generic[V, ST], Item[V]):
114118
A list of channel types that can be selected in this menu.
115119
Only valid for selects of type :attr:`discord.ComponentType.channel_select`.
116120
disabled: :class:`bool`
117-
Whether the select is disabled or not. Only useable in views. Defaults to ``True`` in views.
121+
Whether the select is disabled or not. Only useable in views. Defaults to ``False`` in views.
118122
row: Optional[:class:`int`]
119123
The relative row this select menu belongs to. A Discord component can only have 5
120124
rows. By default, items are arranged automatically into those 5 rows. If you'd
@@ -778,7 +782,7 @@ def select(
778782
default_values: Optional[Sequence[Union[:class:`discord.SelectDefaultValue`, :class:`discord.abc.Snowflake`]]]
779783
The default values of this select. Only applicable if :attr:`.select_type` is not :attr:`discord.ComponentType.string_select`.
780784
781-
This can be either :class:`discord.SelectDefaultValue` instances or models, which will be converted into :class:`discord.SelectDefaultvalue`
785+
This can be either :class:`discord.SelectDefaultValue` instances or models, which will be converted into :class:`discord.SelectDefaultValue`
782786
instances.
783787
784788
Below, is a table defining the model instance type and the default value type it will be mapped:

0 commit comments

Comments
 (0)