diff options
Diffstat (limited to 'sphinx/util/texescape.py')
-rw-r--r-- | sphinx/util/texescape.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/util/texescape.py b/sphinx/util/texescape.py index 66b66a7f0..4d5b9b136 100644 --- a/sphinx/util/texescape.py +++ b/sphinx/util/texescape.py @@ -14,7 +14,6 @@ from __future__ import unicode_literals if False: # For type annotation from typing import Dict # NOQA - from sphinx.util.typing import unicode # NOQA tex_replacements = [ # map TeX special chars @@ -74,13 +73,13 @@ tex_replacements = [ # OHM SIGN U+2126 is handled by LaTeX textcomp package ] -tex_escape_map = {} # type: Dict[int, unicode] +tex_escape_map = {} # type: Dict[int, str] tex_replace_map = {} tex_hl_escape_map_new = {} def escape(s): - # type: (unicode) -> unicode + # type: (str) -> str """Escape text for LaTeX output.""" return s.translate(tex_escape_map) |