Alter return-type of button/select decorators

This commit is contained in:
Josh
2022-02-22 12:54:44 +10:00
committed by GitHub
parent 22b06e7bf8
commit d409ddd227
4 changed files with 9 additions and 10 deletions

View File

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