Fix #5492: sphinx-build fails to build docs w/ Python < 3.5.2

This commit is contained in:
Takeshi KOMIYA
2018-10-06 23:49:46 +09:00
parent e5b8f6a679
commit 86c48c4b82
2 changed files with 3 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ Bugs fixed
----------
* #5490: latex: enumerated list causes a crash with recommonmark
* #5492: sphinx-build fails to build docs w/ Python < 3.5.2
Testing
--------

View File

@@ -10,7 +10,6 @@
"""
import warnings
from typing import TYPE_CHECKING
from docutils import nodes
from docutils.writers.docutils_xml import XMLTranslator
@@ -20,7 +19,8 @@ from sphinx.deprecation import RemovedInSphinx30Warning
from sphinx.transforms import SphinxTransform
from sphinx.util import logging
if TYPE_CHECKING:
if False:
# For type annotation
from typing import Any, Callable, Dict, Iterable, List, Tuple # NOQA
from docutils.parsers.rst.states import Inliner # NOQA
from docutils.writers.html4css1 import Writer # NOQA