summaryrefslogtreecommitdiff
path: root/rplugin/python3/deoplete/logger.py
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2019-06-30 21:21:25 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2019-07-17 20:38:52 +0900
commit8d12794def17889b9fd97ad872fe2c658e0770d9 (patch)
tree139d2c00212fedc84deaf458ac295b193074e664 /rplugin/python3/deoplete/logger.py
parent1c5127e575c07aabdcedeab700f749ac83a4c46b (diff)
downloaddeoplete.nvim-8d12794def17889b9fd97ad872fe2c658e0770d9.zip
Fix type errors
Diffstat (limited to 'rplugin/python3/deoplete/logger.py')
-rw-r--r--rplugin/python3/deoplete/logger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rplugin/python3/deoplete/logger.py b/rplugin/python3/deoplete/logger.py
index 5585119..f24a37d 100644
--- a/rplugin/python3/deoplete/logger.py
+++ b/rplugin/python3/deoplete/logger.py
@@ -68,7 +68,7 @@ def setup(vim: Nvim, level: str, output_file: str='') -> None:
output_file))
-FUNC = typing.Callable[..., None]
+FUNC = typing.Callable[..., typing.Any]
def logmethod(func: FUNC) -> typing.Callable[[FUNC], FUNC]:
"""Decorator for setting up the logger in LoggingMixin subclasses.
@@ -79,7 +79,7 @@ def logmethod(func: FUNC) -> typing.Callable[[FUNC], FUNC]:
@wraps(func)
def wrapper(self, # type: ignore
*args: typing.Any,
- **kwargs: typing.Any) -> None:
+ **kwargs: typing.Any) -> typing.Any:
if not init or not self.is_debug_enabled:
return
if self._logger is None: