From c677ad0312323e79fd5cd41fc46b0efe4a2dd5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= Date: Thu, 19 Jan 2023 11:38:39 +0200 Subject: [PATCH] Add missing generic to interaction in item callback --- discord/ui/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ui/item.py b/discord/ui/item.py index 03ea669a7..8703fbf90 100644 --- a/discord/ui/item.py +++ b/discord/ui/item.py @@ -41,7 +41,7 @@ if TYPE_CHECKING: I = TypeVar('I', bound='Item') V = TypeVar('V', bound='View', covariant=True) -ItemCallbackType = Callable[[V, Interaction, I], Coroutine[Any, Any, Any]] +ItemCallbackType = Callable[[V, Interaction[Any], I], Coroutine[Any, Any, Any]] class Item(Generic[V]):