summaryrefslogtreecommitdiff
path: root/sphinx/builders/htmlhelp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-24 12:21:12 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-24 12:21:12 +0900
commite3b9469683a5e2a44110c8ca5aeb5b28e426efe1 (patch)
treea4e40fbbd20572cd7e5fe912a7b08c5fb055802b /sphinx/builders/htmlhelp.py
parent3acac58e5772cb5ed35688302a13f6e51b46482b (diff)
downloadsphinx-git-e3b9469683a5e2a44110c8ca5aeb5b28e426efe1.tar.gz
Fix mypy violations
Diffstat (limited to 'sphinx/builders/htmlhelp.py')
-rw-r--r--sphinx/builders/htmlhelp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py
index 6a4ce77d7..96db0d98f 100644
--- a/sphinx/builders/htmlhelp.py
+++ b/sphinx/builders/htmlhelp.py
@@ -171,7 +171,7 @@ chm_locales = {
def chm_htmlescape(*args, **kwargs):
- # type: (*Any, **Any) -> unicode
+ # type: (*Any, **Any) -> str
"""
chm_htmlescape() is a wrapper of htmlescape().
.hhc/.hhk files don't recognize hex escaping, we need convert
@@ -180,7 +180,7 @@ def chm_htmlescape(*args, **kwargs):
quote `'`, this wrapper fixes this.
"""
def convert(matchobj):
- # type: (Match[unicode]) -> unicode
+ # type: (Match[str]) -> str
codepoint = int(matchobj.group(1), 16)
return '&#%d;' % codepoint
return re.sub(r'&#[xX]([0-9a-fA-F]+);',