Skip to content

Commit

Permalink
Return result of run() in run_gadget_as_app.
Browse files Browse the repository at this point in the history
  • Loading branch information
salt-die committed Aug 16, 2024
1 parent 04877da commit 1c82a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/batgrl/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def run_gadget_as_app(
render_interval: float = 0.0,
redirect_stderr: Path | None = None,
render_mode: Literal["regions", "painter"] = "regions",
) -> None:
) -> Any:
"""
Run a gadget as an app.
Expand Down Expand Up @@ -464,7 +464,7 @@ class _DefaultApp(App):
async def on_start(self):
self.add_gadget(gadget)

_DefaultApp(
return _DefaultApp(
bg_color=bg_color,
title=title,
inline=inline,
Expand Down

0 comments on commit 1c82a75

Please sign in to comment.