summaryrefslogtreecommitdiff
path: root/sphinx/search/pt.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/search/pt.py')
-rw-r--r--sphinx/search/pt.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/search/pt.py b/sphinx/search/pt.py
index 94d72bb49..068d56bc4 100644
--- a/sphinx/search/pt.py
+++ b/sphinx/search/pt.py
@@ -16,7 +16,6 @@ import snowballstemmer
if False:
# For type annotation
from typing import Any # NOQA
- from sphinx.util.typing import unicode # NOQA
portuguese_stopwords = parse_stop_word(u'''
@@ -277,5 +276,5 @@ class SearchPortuguese(SearchLanguage):
self.stemmer = snowballstemmer.stemmer('portuguese')
def stem(self, word):
- # type: (unicode) -> unicode
+ # type: (str) -> str
return self.stemmer.stemWord(word.lower())