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 2929
3030from ..interactions import Interaction
3131
32- __all__ = ("Item" , "ViewItem" , "ModalItem" , )
32+ __all__ = (
33+ "Item" ,
34+ "ViewItem" ,
35+ "ModalItem" ,
36+ )
3337
3438if TYPE_CHECKING :
3539 from ..components import Component
@@ -130,6 +134,7 @@ def id(self, value) -> None:
130134 return
131135 self ._underlying .id = value
132136
137+
133138class ViewItem (Item [V ]):
134139 """Represents an item used in Views.
135140
@@ -233,6 +238,7 @@ async def callback(self, interaction: Interaction):
233238 The interaction that triggered this UI item.
234239 """
235240
241+
236242class ModalItem (Item [M ]):
237243 """Represents an item used in Modals.
238244
Original file line number Diff line number Diff line change 99from ..utils import find , get
1010from .button import Button
1111from .input_text import InputText
12- from .item import ModalItem , ItemCallbackType
12+ from .item import ItemCallbackType , ModalItem
1313from .select import Select
1414
1515__all__ = ("Label" ,)
You can’t perform that action at this time.
0 commit comments