diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-13 17:01:11 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-13 17:23:15 +0300 |
commit | 70a622b86c753f8b2b4c197e7baf8bdc64a2afc3 (patch) | |
tree | e962ae56902569a52a23091f6f69d16943bbadcd /sphinx/jinja2glue.py | |
parent | 2fd24f9129800c4970f973188484f5af3e4fa2a1 (diff) |
Revert "Use typing.TYPE_CHECKING for typehints"
This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
Diffstat (limited to 'sphinx/jinja2glue.py')
-rw-r--r-- | sphinx/jinja2glue.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py index 4dac0210a..cc935d577 100644 --- a/sphinx/jinja2glue.py +++ b/sphinx/jinja2glue.py @@ -11,7 +11,7 @@ from os import path from pprint import pformat -from typing import TYPE_CHECKING, Any, Callable, Iterator, Tuple # NOQA +from typing import Any, Callable, Iterator, Tuple # NOQA from jinja2 import FileSystemLoader, BaseLoader, TemplateNotFound, \ contextfunction @@ -22,7 +22,8 @@ from six import string_types from sphinx.application import TemplateBridge from sphinx.util.osutil import mtimes_of_files -if TYPE_CHECKING: +if False: + # For type annotation from typing import Any, Callable, Dict, List, Iterator, Tuple # NOQA from jinja2.environment import Environment # NOQA from sphinx.builders import Builder # NOQA |