Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-07-13 17:29:38 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-07-13 17:46:17 +0300
commit0c48a28ad7216ee064b0db564745d749c049bfd5 (patch)
tree2bc2f13992c930c00bd3b60ea3e2c27c31e659cd /sphinx/roles.py
parent0bc530f1b7b3303e0f53e42010b629d67e79b835 (diff)
Fix type annotation for python 3.5.1
Diffstat (limited to 'sphinx/roles.py')
-rw-r--r--sphinx/roles.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/roles.py b/sphinx/roles.py
index 1b80e1ec3..381b9b6f0 100644
--- a/sphinx/roles.py
+++ b/sphinx/roles.py
@@ -23,7 +23,8 @@ from sphinx.util.nodes import split_explicit_title, process_index_entry, \
if False:
# For type annotation
- from typing import Any, Dict, List, Tuple, Type # NOQA
+ from typing import Any, Dict, List, Tuple # NOQA
+ from typing import Type # for python3.5.1
from docutils.parsers.rst.states import Inliner # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.environment import BuildEnvironment # NOQA