Skip to content

Commit 61bf6fa

Browse files
committed
fix: mypy type annotation warnings
XXX: is the connect_write_pipe warning legitimate?
1 parent 5e84c75 commit 61bf6fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pynvim/msgpack_rpc/event_loop/asyncio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
loop_cls = asyncio.SelectorEventLoop
2525
if os.name == 'nt':
26-
from asyncio.windows_utils import PipeHandle
26+
from asyncio.windows_utils import PipeHandle # type: ignore[attr-defined]
2727
import msvcrt
2828

2929
# On windows use ProactorEventLoop which support pipes and is backed by the
@@ -114,7 +114,7 @@ def _connect_stdio(self) -> None:
114114
)
115115
else:
116116
pipe = os.fdopen(rename_stdout, 'wb')
117-
coroutine = self._loop.connect_write_pipe(self._fact, pipe)
117+
coroutine = self._loop.connect_write_pipe(self._fact, pipe) # type: ignore[assignment]
118118
self._loop.run_until_complete(coroutine)
119119
debug("native stdout connection successful")
120120

0 commit comments

Comments
 (0)