File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 29
29
30
30
from ..interactions import Interaction
31
31
32
- __all__ = ("Item" , "ViewItem" , "ModalItem" , )
32
+ __all__ = (
33
+ "Item" ,
34
+ "ViewItem" ,
35
+ "ModalItem" ,
36
+ )
33
37
34
38
if TYPE_CHECKING :
35
39
from ..components import Component
@@ -130,6 +134,7 @@ def id(self, value) -> None:
130
134
return
131
135
self ._underlying .id = value
132
136
137
+
133
138
class ViewItem (Item [V ]):
134
139
"""Represents an item used in Views.
135
140
@@ -233,6 +238,7 @@ async def callback(self, interaction: Interaction):
233
238
The interaction that triggered this UI item.
234
239
"""
235
240
241
+
236
242
class ModalItem (Item [M ]):
237
243
"""Represents an item used in Modals.
238
244
Original file line number Diff line number Diff line change 9
9
from ..utils import find , get
10
10
from .button import Button
11
11
from .input_text import InputText
12
- from .item import ModalItem , ItemCallbackType
12
+ from .item import ItemCallbackType , ModalItem
13
13
from .select import Select
14
14
15
15
__all__ = ("Label" ,)
You can’t perform that action at this time.
0 commit comments