Don't recreate ItemCallbackType

This commit is contained in:
Rapptz
2025-08-13 21:13:17 -04:00
parent 439bd71c0d
commit 8c1886799d
5 changed files with 12 additions and 16 deletions

View File

@ -41,7 +41,7 @@ from typing import (
overload,
)
from .item import I, Item
from .item import Item, ContainedItemCallbackType as ItemCallbackType
from .button import Button, button as _button
from .select import select as _select, Select, UserSelect, RoleSelect, ChannelSelect, MentionableSelect
from ..components import ActionRow as ActionRowComponent
@ -66,7 +66,6 @@ if TYPE_CHECKING:
from ..components import SelectOption
from ..interactions import Interaction
ItemCallbackType = Callable[['S', Interaction[Any], I], Coroutine[Any, Any, Any]]
SelectCallbackDecorator = Callable[[ItemCallbackType['S', BaseSelectT]], BaseSelectT]
S = TypeVar('S', bound='ActionRow', covariant=True)