summaryrefslogtreecommitdiff
path: root/sphinx/directives/patches.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-18 12:39:07 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-18 12:39:07 +0900
commitf8bb40ab308b5daacfe45979a4e42fa82f8ef8ed (patch)
tree864ca265398a155e410fb08052d926911e51fc08 /sphinx/directives/patches.py
parent91eeaea72f795f78a726f6c0101917e7fbcd41a1 (diff)
parent97a7017d198ad06b0bd960cc41cc261fcc99359c (diff)
downloadsphinx-git-f8bb40ab308b5daacfe45979a4e42fa82f8ef8ed.tar.gz
Merge branch '1.7'
Diffstat (limited to 'sphinx/directives/patches.py')
-rw-r--r--sphinx/directives/patches.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py
index 14f0ca17e..8407c9981 100644
--- a/sphinx/directives/patches.py
+++ b/sphinx/directives/patches.py
@@ -7,6 +7,8 @@
:license: BSD, see LICENSE for details.
"""
+from typing import TYPE_CHECKING
+
from docutils import nodes
from docutils.parsers.rst import directives
from docutils.parsers.rst.directives import images, html, tables
@@ -14,8 +16,7 @@ from docutils.parsers.rst.directives import images, html, tables
from sphinx import addnodes
from sphinx.util.nodes import set_source_info
-if False:
- # For type annotation
+if TYPE_CHECKING:
from typing import Dict, List, Tuple # NOQA
from sphinx.application import Sphinx # NOQA