From 579a79660e843cd86278832c9aad3fec8f8a5fb3 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 7 May 2017 14:09:54 +0900 Subject: Update type annotations for new mypy --- sphinx/search/ja.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sphinx/search/ja.py') diff --git a/sphinx/search/ja.py b/sphinx/search/ja.py index a2703441b..d1d922dd4 100644 --- a/sphinx/search/ja.py +++ b/sphinx/search/ja.py @@ -41,7 +41,7 @@ from sphinx.util import import_object if False: # For type annotation - from typing import Dict, List # NOQA + from typing import Any, Dict, List # NOQA class BaseSplitter(object): @@ -65,8 +65,8 @@ class MecabSplitter(BaseSplitter): def __init__(self, options): # type: (Dict) -> None super(MecabSplitter, self).__init__(options) - self.ctypes_libmecab = None # type: ignore - self.ctypes_mecab = None # type: ignore + self.ctypes_libmecab = None # type: Any + self.ctypes_mecab = None # type: Any if not native_module: self.init_ctypes(options) else: -- cgit v1.2.3