summaryrefslogtreecommitdiff
path: root/rplugin
diff options
context:
space:
mode:
authorMilly <milly.ca@gmail.com>2020-06-06 16:54:50 +0900
committerMilly <milly.ca@gmail.com>2020-06-06 17:17:18 +0900
commit531a4bb3b4f67c8774ed419d63cf72315ae34cdd (patch)
treef3b2066408d1be215b5afcf1baabc3e65b0d2159 /rplugin
parent921688d72168e436c82f3d413a5de7d78369a0c7 (diff)
downloaddeoplete.nvim-531a4bb3b4f67c8774ed419d63cf72315ae34cdd.zip
Fix typing
Diffstat (limited to 'rplugin')
-rw-r--r--rplugin/python3/deoplete/parent.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/rplugin/python3/deoplete/parent.py b/rplugin/python3/deoplete/parent.py
index 0544fb1..13304a4 100644
--- a/rplugin/python3/deoplete/parent.py
+++ b/rplugin/python3/deoplete/parent.py
@@ -92,18 +92,18 @@ class AsyncParent(_Parent):
"""
exe = sys.executable
if not os.path.basename(exe).lower().startswith('python'):
- check: typing.Tuple[typing.Any, ...]
+ checks: typing.Tuple[typing.Any, ...]
if os.name == 'nt':
checks = (r'Scripts\python.exe', 'python.exe')
else:
checks = (
- 'bin/python%s.%s' % ( # type: ignore
+ 'bin/python%s.%s' % (
sys.version_info[0], sys.version[1]),
'bin/python%s' % (sys.version_info[0]),
'bin/python',
)
- for check in checks: # type: ignore
- guess = os.path.join(sys.exec_prefix, check) # type: ignore
+ for check in checks:
+ guess = os.path.join(sys.exec_prefix, check)
if os.path.isfile(str(guess)):
return str(guess)
if 'python3_host_prog' not in self._vim.vars:
@@ -114,9 +114,9 @@ class AsyncParent(_Parent):
def _start_process(self) -> None:
self._stdin: typing.Optional[typing.Any] = None
self._queue_id = ''
- self._queue_in: Queue = Queue() # type: ignore
- self._queue_out: Queue = Queue() # type: ignore
- self._queue_err: Queue = Queue() # type: ignore
+ self._queue_in: 'Queue[bytes]' = Queue()
+ self._queue_out: 'Queue[typing.Any]' = Queue()
+ self._queue_err: 'Queue[typing.Any]' = Queue()
if msgpack.version < (1, 0, 0):
self._packer = msgpack.Packer(
encoding='utf-8',