diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-18 06:39:07 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-18 06:39:07 +0300 |
commit | f8bb40ab308b5daacfe45979a4e42fa82f8ef8ed (patch) | |
tree | 864ca265398a155e410fb08052d926911e51fc08 /sphinx/jinja2glue.py | |
parent | 91eeaea72f795f78a726f6c0101917e7fbcd41a1 (diff) | |
parent | 97a7017d198ad06b0bd960cc41cc261fcc99359c (diff) |
Merge branch '1.7'
Diffstat (limited to 'sphinx/jinja2glue.py')
-rw-r--r-- | sphinx/jinja2glue.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py index 24dd0e0fd..0cf95d882 100644 --- a/sphinx/jinja2glue.py +++ b/sphinx/jinja2glue.py @@ -11,7 +11,7 @@ from os import path from pprint import pformat -from typing import Any, Callable, Iterator, Tuple # NOQA +from typing import TYPE_CHECKING, Any, Callable, Iterator, Tuple # NOQA from jinja2 import FileSystemLoader, BaseLoader, TemplateNotFound, \ contextfunction @@ -22,8 +22,7 @@ from six import string_types from sphinx.application import TemplateBridge from sphinx.util.osutil import mtimes_of_files -if False: - # For type annotation +if TYPE_CHECKING: from typing import Any, Callable, Dict, List, Iterator, Tuple, Union # NOQA from jinja2.environment import Environment # NOQA from sphinx.builders import Builder # NOQA |