diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-24 12:21:12 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-24 12:21:12 +0900 |
commit | e3b9469683a5e2a44110c8ca5aeb5b28e426efe1 (patch) | |
tree | a4e40fbbd20572cd7e5fe912a7b08c5fb055802b /sphinx/builders/htmlhelp.py | |
parent | 3acac58e5772cb5ed35688302a13f6e51b46482b (diff) | |
download | sphinx-git-e3b9469683a5e2a44110c8ca5aeb5b28e426efe1.tar.gz |
Fix mypy violations
Diffstat (limited to 'sphinx/builders/htmlhelp.py')
-rw-r--r-- | sphinx/builders/htmlhelp.py | 4 |
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]+);', |