Add missing generic to interaction in item callback

This commit is contained in:
Alex Nørgaard 2023-01-19 11:38:39 +02:00 committed by GitHub
parent 2e737e70de
commit c677ad0312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]):