mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 16:32:59 +00:00
Add missing generic to interaction in item callback
This commit is contained in:
@@ -41,7 +41,7 @@ if TYPE_CHECKING:
|
|||||||
|
|
||||||
I = TypeVar('I', bound='Item')
|
I = TypeVar('I', bound='Item')
|
||||||
V = TypeVar('V', bound='View', covariant=True)
|
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]):
|
class Item(Generic[V]):
|
||||||
|
Reference in New Issue
Block a user