Fix partially uknown typing errors

This commit is contained in:
Bryan Forbes
2023-03-01 18:14:50 -06:00
committed by GitHub
parent 6910943703
commit 1de3562f34
3 changed files with 14 additions and 14 deletions

View File

@ -40,7 +40,7 @@ if TYPE_CHECKING:
from .view import View
from ..components import Component
I = TypeVar('I', bound='Item')
I = TypeVar('I', bound='Item[Any]')
V = TypeVar('V', bound='View', covariant=True)
ItemCallbackType = Callable[[V, Interaction[Any], I], Coroutine[Any, Any, Any]]