mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Alter return-type of button/select decorators
This commit is contained in:
4 files changed
+9
-10
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ if TYPE_CHECKING:
|
||||
|
||||
I = TypeVar('I', bound='Item')
|
||||
V = TypeVar('V', bound='View', covariant=True)
|
||||
ItemCallbackType = Callable[[Any, I, Interaction], Coroutine[Any, Any, Any]]
|
||||
ItemCallbackType = Callable[[V, I, Interaction], Coroutine[Any, Any, Any]]
|
||||
|
||||
|
||||
class Item(Generic[V]):
|
||||
|
||||
Reference in new issue
Block a user