Skip to content

Commit 84ac43e

Browse files
committed
ruff format
1 parent 7f98fc9 commit 84ac43e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/prompt_toolkit/application/_compat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ def asyncio_run(
4545
except RuntimeError:
4646
pass
4747
else:
48-
raise RuntimeError("asyncio.run() cannot be called from a running event loop")
48+
raise RuntimeError(
49+
"asyncio.run() cannot be called from a running event loop"
50+
)
4951

5052
if not asyncio.iscoroutine(main):
5153
raise ValueError(f"a coroutine was expected, got {main!r}")

src/prompt_toolkit/application/application.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,9 @@ def _called_from_ipython() -> bool:
972972
return False
973973

974974
if inputhook is not None:
975-
return asyncio_run(coro, loop_factory=lambda: new_eventloop_with_inputhook(inputhook))
975+
return asyncio_run(
976+
coro, loop_factory=lambda: new_eventloop_with_inputhook(inputhook)
977+
)
976978

977979
elif _called_from_ipython():
978980
# workaround to make input hooks work for IPython until

0 commit comments

Comments
 (0)