diff --git a/CHANGELOG.md b/CHANGELOG.md index 35321c2858..c5696f04d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,9 @@ These changes are available on the `master` branch, but have not yet been releas ### Fixed +- Fixed breaking change in `ui.Select` Generic typing by adding default values to + TypeVars. ([#3002](https://github.com/Pycord-Development/pycord/pull/3002)) + ### Deprecated ### Removed diff --git a/discord/ui/select.py b/discord/ui/select.py index ef94aa9647..3969739fa4 100644 --- a/discord/ui/select.py +++ b/discord/ui/select.py @@ -71,8 +71,8 @@ ST = TypeVar("ST", bound="Snowflake | str", covariant=True, default=Any) S = TypeVar("S", bound="Select") -V = TypeVar("V", bound="BaseView", covariant=True) -M = TypeVar("M", bound="DesignerModal", covariant=True) +V = TypeVar("V", bound="BaseView", covariant=True, default="BaseView") +M = TypeVar("M", bound="DesignerModal", covariant=True, default="DesignerModal") class Select(ViewItem[V], ModalItem[M], Generic[V, M, ST]):