diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2020-03-12 08:12:40 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2020-03-12 08:12:40 +0900 |
commit | 494fcd8f311fb394d81921b63797e963c7d642a3 (patch) | |
tree | 294ac1cc4a62e658fa9e01d57e4d46f316dde996 | |
parent | 51f3f3f6c164fac63207f312a1bdb7ccadb05ef7 (diff) | |
download | deoplete.nvim-494fcd8f311fb394d81921b63797e963c7d642a3.zip |
Fix lint errors
-rw-r--r-- | rplugin/python3/deoplete/parent.py | 2 | ||||
-rw-r--r-- | rplugin/python3/deoplete/source/file.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rplugin/python3/deoplete/parent.py b/rplugin/python3/deoplete/parent.py index 3a283f8..97a8658 100644 --- a/rplugin/python3/deoplete/parent.py +++ b/rplugin/python3/deoplete/parent.py @@ -173,7 +173,7 @@ class AsyncParent(_Parent): return (True, False, []) self._queue_id = '' results = get[0] - return (results['is_async'], results['is_async'], # type: ignore + return (results['is_async'], results['is_async'], results['merged_results']) if results else (False, []) def _put(self, name: str, diff --git a/rplugin/python3/deoplete/source/file.py b/rplugin/python3/deoplete/source/file.py index 910dde6..2aa1dff 100644 --- a/rplugin/python3/deoplete/source/file.py +++ b/rplugin/python3/deoplete/source/file.py @@ -56,7 +56,7 @@ class Source(Base): else './') p = self._longest_path_that_exists(context, input_str) - if p in (None, []) or p == '/' or re.search('//+$', p): + if not p or p == '/' or re.search('//+$', p): return [] complete_str = self._substitute_path(context, dirname(p) + '/') if not os.path.isdir(complete_str): |