Add missing generic parameters on various Interaction parameters

This commit is contained in:
Rapptz
2023-01-19 07:00:09 -05:00
parent c677ad0312
commit bbba8c650f
5 changed files with 23 additions and 21 deletions

View File

@ -27,6 +27,7 @@ from __future__ import annotations
from typing import Any, Callable, Coroutine, Dict, Generic, Optional, TYPE_CHECKING, Tuple, Type, TypeVar
from ..interactions import Interaction
from .._types import ClientT
# fmt: off
__all__ = (
@ -119,7 +120,7 @@ class Item(Generic[V]):
"""Optional[:class:`View`]: The underlying view for this item."""
return self._view
async def callback(self, interaction: Interaction) -> Any:
async def callback(self, interaction: Interaction[ClientT]) -> Any:
"""|coro|
The callback associated with this UI item.