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

@ -25,7 +25,6 @@ DEALINGS IN THE SOFTWARE.
from __future__ import annotations
from typing import (
Any,
Coroutine,
List,
Literal,
Optional,
@ -43,7 +42,7 @@ from contextvars import ContextVar
import inspect
import os
from .item import Item, I
from .item import Item, ContainedItemCallbackType as ItemCallbackType
from ..enums import ChannelType, ComponentType, SelectDefaultValueType
from ..partial_emoji import PartialEmoji
from ..emoji import Emoji
@ -103,8 +102,6 @@ if TYPE_CHECKING:
Thread,
]
ItemCallbackType = Callable[['S', Interaction[Any], I], Coroutine[Any, Any, Any]]
S = TypeVar('S', bound='Union[BaseView, ActionRow]', covariant=True)
V = TypeVar('V', bound='BaseView', covariant=True)
BaseSelectT = TypeVar('BaseSelectT', bound='BaseSelect[Any]')