diff --git a/pynvim/msgpack_rpc/event_loop/asyncio.py b/pynvim/msgpack_rpc/event_loop/asyncio.py index b7843cdf..cea7298c 100644 --- a/pynvim/msgpack_rpc/event_loop/asyncio.py +++ b/pynvim/msgpack_rpc/event_loop/asyncio.py @@ -23,7 +23,7 @@ loop_cls = asyncio.SelectorEventLoop if os.name == 'nt': - from asyncio.windows_utils import PipeHandle + from asyncio.windows_utils import PipeHandle # type: ignore[attr-defined] import msvcrt # On windows use ProactorEventLoop which support pipes and is backed by the @@ -114,7 +114,7 @@ def _connect_stdio(self) -> None: ) else: pipe = os.fdopen(rename_stdout, 'wb') - coroutine = self._loop.connect_write_pipe(self._fact, pipe) + coroutine = self._loop.connect_write_pipe(self._fact, pipe) # type: ignore[assignment] self._loop.run_until_complete(coroutine) debug("native stdout connection successful")