|
47 | 47 |
|
48 | 48 | from ..components import ActionRow as ActionRowComponent |
49 | 49 | from ..components import Button as ButtonComponent |
50 | | -from ..components import Component, FileComponent, _component_factory |
| 50 | +from ..components import Component |
51 | 51 | from ..components import Container as ContainerComponent |
| 52 | +from ..components import FileComponent |
52 | 53 | from ..components import Label as LabelComponent |
53 | 54 | from ..components import MediaGallery as MediaGalleryComponent |
54 | 55 | from ..components import Section as SectionComponent |
55 | 56 | from ..components import SelectMenu as SelectComponent |
56 | 57 | from ..components import Separator as SeparatorComponent |
57 | 58 | from ..components import TextDisplay as TextDisplayComponent |
58 | 59 | from ..components import Thumbnail as ThumbnailComponent |
| 60 | +from ..components import _component_factory |
59 | 61 | from .core import ItemInterface |
60 | 62 | from .item import ItemCallbackType, ViewItem |
61 | 63 |
|
@@ -911,9 +913,9 @@ def is_components_v2(self) -> bool: |
911 | 913 | class ViewStore: |
912 | 914 | def __init__(self, state: ConnectionState): |
913 | 915 | # (component_type, message_id, custom_id): (BaseView, ViewItem) |
914 | | - self._views: dict[ |
915 | | - tuple[int, int | None, str], tuple[BaseView, ViewItem[V]] |
916 | | - ] = {} |
| 916 | + self._views: dict[tuple[int, int | None, str], tuple[BaseView, ViewItem[V]]] = ( |
| 917 | + {} |
| 918 | + ) |
917 | 919 | # message_id: View |
918 | 920 | self._synced_message_views: dict[int, BaseView] = {} |
919 | 921 | self._state: ConnectionState = state |
|
0 commit comments