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/io.py | |
parent | 3b87df07ff0e875564684cf278427e31d7d4548d (diff) |
Hello TYPE_CHECKING!
Diffstat (limited to 'sphinx/io.py')
-rw-r--r-- | sphinx/io.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/io.py b/sphinx/io.py index 0462afd83..c8dba1fed 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -10,6 +10,7 @@ import codecs import warnings from typing import Any, List, Type +from typing import TYPE_CHECKING from docutils import nodes from docutils.core import Publisher @@ -37,8 +38,7 @@ from sphinx.util import UnicodeDecodeErrorHandler from sphinx.util.docutils import LoggingReporter from sphinx.versioning import UIDTransform -if False: - # For type annotation +if TYPE_CHECKING: from sphinx.application import Sphinx |