summaryrefslogtreecommitdiff
path: root/sphinx/util/typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/typing.py')
-rw-r--r--sphinx/util/typing.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/sphinx/util/typing.py b/sphinx/util/typing.py
index 72ef77742..12b7a2642 100644
--- a/sphinx/util/typing.py
+++ b/sphinx/util/typing.py
@@ -13,16 +13,9 @@ from typing import Any, Callable, Dict, List, Tuple, Union
from docutils import nodes
from docutils.parsers.rst.states import Inliner
-from six import PY2, text_type
+from six import text_type
-# a typedef for unicode to make migration to mypy-py3 mode easy
-# Note: It will be removed after migrated (soon).
-if PY2:
- unicode = text_type
-else:
- unicode = str
-
# An entry of Directive.option_spec
DirectiveOption = Callable[[str], Any]