Skip to content

Commit d5946d1

Browse files
committed
Fix bounds for TextInput and Label generic
Fix #10280
1 parent 91281f2 commit d5946d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

discord/ui/label.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from typing_extensions import Self
3636

3737
from ..types.components import LabelComponent as LabelComponentPayload
38-
from .view import View
38+
from .view import BaseView
3939

4040

4141
# fmt: off
@@ -44,7 +44,7 @@
4444
)
4545
# fmt: on
4646

47-
V = TypeVar('V', bound='View', covariant=True)
47+
V = TypeVar('V', bound='BaseView', covariant=True)
4848

4949

5050
class Label(Item[V]):

discord/ui/text_input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
from ..types.components import TextInput as TextInputPayload
3939
from ..types.interactions import ModalSubmitTextInputInteractionData as ModalSubmitTextInputInteractionDataPayload
40-
from .view import View
40+
from .view import BaseView
4141
from ..interactions import Interaction
4242

4343

@@ -47,7 +47,7 @@
4747
)
4848
# fmt: on
4949

50-
V = TypeVar('V', bound='View', covariant=True)
50+
V = TypeVar('V', bound='BaseView', covariant=True)
5151

5252

5353
class TextInput(Item[V]):

0 commit comments

Comments
 (0)