mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-28 14:05:05 +00:00
parent
91281f23a0
commit
d5946d1cbc
@ -35,7 +35,7 @@ if TYPE_CHECKING:
|
|||||||
from typing_extensions import Self
|
from typing_extensions import Self
|
||||||
|
|
||||||
from ..types.components import LabelComponent as LabelComponentPayload
|
from ..types.components import LabelComponent as LabelComponentPayload
|
||||||
from .view import View
|
from .view import BaseView
|
||||||
|
|
||||||
|
|
||||||
# fmt: off
|
# fmt: off
|
||||||
@ -44,7 +44,7 @@ __all__ = (
|
|||||||
)
|
)
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
|
||||||
V = TypeVar('V', bound='View', covariant=True)
|
V = TypeVar('V', bound='BaseView', covariant=True)
|
||||||
|
|
||||||
|
|
||||||
class Label(Item[V]):
|
class Label(Item[V]):
|
||||||
|
@ -37,7 +37,7 @@ if TYPE_CHECKING:
|
|||||||
|
|
||||||
from ..types.components import TextInput as TextInputPayload
|
from ..types.components import TextInput as TextInputPayload
|
||||||
from ..types.interactions import ModalSubmitTextInputInteractionData as ModalSubmitTextInputInteractionDataPayload
|
from ..types.interactions import ModalSubmitTextInputInteractionData as ModalSubmitTextInputInteractionDataPayload
|
||||||
from .view import View
|
from .view import BaseView
|
||||||
from ..interactions import Interaction
|
from ..interactions import Interaction
|
||||||
|
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ __all__ = (
|
|||||||
)
|
)
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
|
||||||
V = TypeVar('V', bound='View', covariant=True)
|
V = TypeVar('V', bound='BaseView', covariant=True)
|
||||||
|
|
||||||
|
|
||||||
class TextInput(Item[V]):
|
class TextInput(Item[V]):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user