diff --git a/jupyter_client/utils.py b/jupyter_client/utils.py index 8a451eaca..9fa2ce1f1 100644 --- a/jupyter_client/utils.py +++ b/jupyter_client/utils.py @@ -57,7 +57,7 @@ def wrapped(*args, **kwargs): except RuntimeError: loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) - import nest_asyncio # type: ignore + import nest_asyncio nest_asyncio.apply(loop) future = asyncio.ensure_future(coro(*args, **kwargs), loop=loop)