summaryrefslogtreecommitdiff
path: root/sphinx/transforms
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-24 20:14:43 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-24 23:19:51 +0900
commit3c99d0060557bb33a482f3fe74c1b665fb3de010 (patch)
tree756aecf0bcb307e553f3903ee5bd9ff9b32d44f1 /sphinx/transforms
parent95dffb2af6fbdefe30f1b492adedc4036abd6f84 (diff)
downloadsphinx-git-3c99d0060557bb33a482f3fe74c1b665fb3de010.tar.gz
Add sphinx.util.typing:unicode to help mypy-3 migration
Diffstat (limited to 'sphinx/transforms')
-rw-r--r--sphinx/transforms/__init__.py1
-rw-r--r--sphinx/transforms/i18n.py1
-rw-r--r--sphinx/transforms/post_transforms/__init__.py1
-rw-r--r--sphinx/transforms/post_transforms/code.py1
-rw-r--r--sphinx/transforms/post_transforms/compat.py1
-rw-r--r--sphinx/transforms/post_transforms/images.py1
6 files changed, 6 insertions, 0 deletions
diff --git a/sphinx/transforms/__init__.py b/sphinx/transforms/__init__.py
index a0549569e..e364b7c99 100644
--- a/sphinx/transforms/__init__.py
+++ b/sphinx/transforms/__init__.py
@@ -32,6 +32,7 @@ if False:
from sphinx.config import Config # NOQA
from sphinx.domain.std import StandardDomain # NOQA
from sphinx.environment import BuildEnvironment # NOQA
+ from sphinx.util.typing import unicode # NOQA
logger = logging.getLogger(__name__)
diff --git a/sphinx/transforms/i18n.py b/sphinx/transforms/i18n.py
index ec05ae05c..b7f7f4494 100644
--- a/sphinx/transforms/i18n.py
+++ b/sphinx/transforms/i18n.py
@@ -33,6 +33,7 @@ if False:
from typing import Dict, List, Tuple # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.config import Config # NOQA
+ from sphinx.util.typing import unicode # NOQA
logger = logging.getLogger(__name__)
diff --git a/sphinx/transforms/post_transforms/__init__.py b/sphinx/transforms/post_transforms/__init__.py
index f21410caa..c3ccede63 100644
--- a/sphinx/transforms/post_transforms/__init__.py
+++ b/sphinx/transforms/post_transforms/__init__.py
@@ -23,6 +23,7 @@ if False:
from typing import Any, Dict, List, Tuple # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.domains import Domain # NOQA
+ from sphinx.util.typing import unicode # NOQA
logger = logging.getLogger(__name__)
diff --git a/sphinx/transforms/post_transforms/code.py b/sphinx/transforms/post_transforms/code.py
index 66369285c..8b785d7d2 100644
--- a/sphinx/transforms/post_transforms/code.py
+++ b/sphinx/transforms/post_transforms/code.py
@@ -24,6 +24,7 @@ if False:
# For type annotation
from typing import Any, Dict, List # NOQA
from sphinx.application import Sphinx # NOQA
+ from sphinx.util.typing import unicode # NOQA
HighlightSetting = NamedTuple('HighlightSetting', [('language', text_type),
diff --git a/sphinx/transforms/post_transforms/compat.py b/sphinx/transforms/post_transforms/compat.py
index 9bd3b3395..144b80e85 100644
--- a/sphinx/transforms/post_transforms/compat.py
+++ b/sphinx/transforms/post_transforms/compat.py
@@ -27,6 +27,7 @@ if False:
from sphinx.application import Sphinx # NOQA
from sphinx.builders import Builder # NOQA
from sphinx.environment import BuildEnvironment # NOQA
+ from sphinx.util.typing import unicode # NOQA
logger = logging.getLogger(__name__)
diff --git a/sphinx/transforms/post_transforms/images.py b/sphinx/transforms/post_transforms/images.py
index 728b00c12..8e7744d64 100644
--- a/sphinx/transforms/post_transforms/images.py
+++ b/sphinx/transforms/post_transforms/images.py
@@ -27,6 +27,7 @@ if False:
# For type annotation
from typing import Any, Dict, List, Tuple # NOQA
from sphinx.application import Sphinx # NOQA
+ from sphinx.util.typing import unicode # NOQA
logger = logging.getLogger(__name__)