|
5 | 5 | from omnipy.data._display.config import OutputConfig
|
6 | 6 | from omnipy.data._display.constraints import Constraints
|
7 | 7 | from omnipy.data._display.dimensions import Dimensions
|
8 |
| -from omnipy.data._display.frame import empty_frame, Frame, FrameWithWidthAndHeight, UndefinedFrame |
| 8 | +from omnipy.data._display.frame import (AnyFrame, |
| 9 | + empty_frame, |
| 10 | + Frame, |
| 11 | + FrameWithWidthAndHeight, |
| 12 | + UndefinedFrame) |
9 | 13 | from omnipy.data._display.layout import Layout
|
10 | 14 | from omnipy.data._display.panel.draft.base import DraftPanel
|
11 | 15 | from omnipy.data._display.panel.draft.layout import ResizedLayoutDraftPanel
|
@@ -166,15 +170,15 @@ def test_draft_panel_render_next_stage_with_repr(
|
166 | 170 |
|
167 | 171 | def test_draft_panel_render_next_stage_with_layout(
|
168 | 172 | skip_test_if_not_default_data_config_values: Annotated[None, pytest.fixture]) -> None:
|
169 |
| - draft_panel = DraftPanel(Layout()) |
| 173 | + draft_panel: DraftPanel[Layout, AnyFrame] = DraftPanel(Layout()) |
170 | 174 | assert_next_stage_panel(
|
171 | 175 | this_panel=draft_panel,
|
172 | 176 | next_stage=draft_panel.render_next_stage(),
|
173 | 177 | next_stage_panel_cls=ResizedLayoutDraftPanel,
|
174 | 178 | exp_content=Layout(),
|
175 | 179 | )
|
176 | 180 |
|
177 |
| - draft_panel_complex = DraftPanel( |
| 181 | + draft_panel_complex: DraftPanel[Layout, FrameWithWidthAndHeight] = DraftPanel( |
178 | 182 | Layout(tuple=MockPanel('(1, 2, 3)'), text=MockPanel('Here is some text')),
|
179 | 183 | frame=Frame(Dimensions(21, 5)),
|
180 | 184 | constraints=Constraints(container_width_per_line_limit=10),
|
|
0 commit comments