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>2020-03-07 04:45:39 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-03-07 13:36:41 +0300
commit6d4fefebf4ecee4416da016d8e647298003fb57a (patch)
treea0f8dedd36b9562a248bcf8bc8eab91d09136a58 /sphinx/environment
parent3e0618ba3a84c7db51813cab43779d11c5fe7802 (diff)
Deprecate codes for python 3.5
Diffstat (limited to 'sphinx/environment')
-rw-r--r--sphinx/environment/collectors/toctree.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/sphinx/environment/collectors/toctree.py b/sphinx/environment/collectors/toctree.py
index e168bd9c4..acb45ef56 100644
--- a/sphinx/environment/collectors/toctree.py
+++ b/sphinx/environment/collectors/toctree.py
@@ -8,7 +8,7 @@
:license: BSD, see LICENSE for details.
"""
-from typing import Any, Dict, List, Set, Tuple, TypeVar
+from typing import Any, Dict, List, Set, Tuple, Type, TypeVar
from typing import cast
from docutils import nodes
@@ -23,10 +23,6 @@ from sphinx.locale import __
from sphinx.transforms import SphinxContentsFilter
from sphinx.util import url_re, logging
-if False:
- # For type annotation
- from typing import Type # for python3.5.1
-
N = TypeVar('N')