Skip to content

Commit

Permalink
fix: mypy type annotation warnings
Browse files Browse the repository at this point in the history
XXX: is the connect_write_pipe warning legitimate?
  • Loading branch information
justinmk committed Jul 14, 2023
1 parent 5e84c75 commit 61bf6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynvim/msgpack_rpc/event_loop/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 61bf6fa

Please sign in to comment.