From b1e4036640b5d2290674e1a04f957f015d89f62d Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Fri, 16 Dec 2016 00:43:17 +0900 Subject: [PATCH] Update type annotation --- sphinx/util/stemmer/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx/util/stemmer/__init__.py b/sphinx/util/stemmer/__init__.py index ae9f76f1b..f36924223 100644 --- a/sphinx/util/stemmer/__init__.py +++ b/sphinx/util/stemmer/__init__.py @@ -34,11 +34,11 @@ class PyStemmer(BaseStemmer): return self.stemmer.stemWord(word) -class StandardStemmer(BaseStemmer, PorterStemmer): +class StandardStemmer(BaseStemmer, PorterStemmer): # type: ignore """All those porter stemmer implementations look hideous; make at least the stem method nicer. """ - def stem(self, word): + def stem(self, word): # type: ignore # type: (unicode) -> unicode return PorterStemmer.stem(self, word, 0, len(word) - 1)