diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-07 05:30:01 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-07 13:36:41 +0300 |
commit | 941bf951acda5a27b6ff5adef6678c974b6615ba (patch) | |
tree | 21ebcfdeac2d917763b1bb155c08e9da9d4a548f /sphinx/jinja2glue.py | |
parent | 3b87df07ff0e875564684cf278427e31d7d4548d (diff) |
Hello TYPE_CHECKING!
Diffstat (limited to 'sphinx/jinja2glue.py')
-rw-r--r-- | sphinx/jinja2glue.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py index e943cfb1e..a097888a1 100644 --- a/sphinx/jinja2glue.py +++ b/sphinx/jinja2glue.py @@ -11,6 +11,7 @@ from os import path from pprint import pformat from typing import Any, Callable, Dict, Iterator, List, Tuple, Union +from typing import TYPE_CHECKING from jinja2 import FileSystemLoader, BaseLoader, TemplateNotFound, contextfunction from jinja2.environment import Environment @@ -22,8 +23,7 @@ from sphinx.theming import Theme from sphinx.util import logging from sphinx.util.osutil import mtimes_of_files -if False: - # For type annotation +if TYPE_CHECKING: from sphinx.builders import Builder |