File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/prompt_toolkit/application Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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} " )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments