Skip to content

Commit

Permalink
fix: async app_snapshot; fix type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
tconbeer committed Nov 10, 2023
1 parent d7f73aa commit f8f7a5f
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 92 deletions.
67 changes: 34 additions & 33 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/harlequin/components/code_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ async def action_new_buffer(self, state: Union[BufferState, None] = None) -> Non
editor,
id=new_tab_id,
)
await self.add_pane(pane)
await self.add_pane(pane) # type: ignore
if state is not None:
editor.text = state.text
editor.cursor = state.cursor
Expand Down
2 changes: 1 addition & 1 deletion src/harlequin/components/results_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def push_table(
if n > 1:
self.remove_class("hide-tabs")
pane = TabPane(f"Result {n}", table)
await self.tab_switcher.add_pane(pane)
await self.tab_switcher.add_pane(pane) # type: ignore
self.tab_switcher.active = f"tab-{n}"

async def set_not_responsive(self, data: Dict[str, pa.Table]) -> None:
Expand Down
214 changes: 214 additions & 0 deletions tests/functional_tests/__snapshots__/test_app.ambr

Large diffs are not rendered by default.

Loading

0 comments on commit f8f7a5f

Please sign in to comment.