mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Update type annotation
This commit is contained in:
parent
d94e6a331b
commit
b1e4036640
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user