Fix type error with ItemCallbackType

This commit is contained in:
Rapptz
2025-08-18 07:13:50 -04:00
parent 0c98251087
commit 6f6d990195
2 changed files with 4 additions and 2 deletions

View File

@ -45,10 +45,11 @@ if TYPE_CHECKING:
from .view import BaseView
from .action_row import ActionRow
from .container import Container
from ..emoji import Emoji
from ..types.components import ButtonComponent as ButtonComponentPayload
S = TypeVar('S', bound='Union[BaseView, ActionRow]', covariant=True)
S = TypeVar('S', bound='Union[BaseView, Container, ActionRow]', covariant=True)
V = TypeVar('V', bound='BaseView', covariant=True)