File tree 2 files changed +6
-2
lines changed
src/prompt_toolkit/application
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ def asyncio_run(
45
45
except RuntimeError :
46
46
pass
47
47
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
+ )
49
51
50
52
if not asyncio .iscoroutine (main ):
51
53
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:
972
972
return False
973
973
974
974
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
+ )
976
978
977
979
elif _called_from_ipython ():
978
980
# workaround to make input hooks work for IPython until
You can’t perform that action at this time.
0 commit comments