From 63357e011333870e937fab564620f467b6150e76 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 24 Aug 2025 13:21:54 -0400 Subject: [PATCH] Revert "Add second generic parameter for view for DynamicItem" This reverts commit fe7ce982f332d421e12ddd0e1d4babb17c35c1d6. --- discord/ui/dynamic.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/discord/ui/dynamic.py b/discord/ui/dynamic.py index d076267b1..faed8c370 100644 --- a/discord/ui/dynamic.py +++ b/discord/ui/dynamic.py @@ -39,14 +39,11 @@ if TYPE_CHECKING: from ..components import Component from ..enums import ComponentType from .view import View, LayoutView - - V = TypeVar('V', bound=Union[View, LayoutView], covariant=True, default=Union[View, LayoutView]) else: View = LayoutView = Any - from .item import V -class DynamicItem(Generic[BaseT, V], Item[V]): +class DynamicItem(Generic[BaseT], Item[Union[View, LayoutView]]): """Represents an item with a dynamic ``custom_id`` that can be used to store state within that ``custom_id``.