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/util/fileutil.py | |
parent | 2fd24f9129800c4970f973188484f5af3e4fa2a1 (diff) |
Revert "Use typing.TYPE_CHECKING for typehints"
This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
Diffstat (limited to 'sphinx/util/fileutil.py')
-rw-r--r-- | sphinx/util/fileutil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/fileutil.py b/sphinx/util/fileutil.py index 9b9725810..7caf40275 100644 --- a/sphinx/util/fileutil.py +++ b/sphinx/util/fileutil.py @@ -13,13 +13,13 @@ from __future__ import absolute_import import codecs import os import posixpath -from typing import TYPE_CHECKING from docutils.utils import relative_path from sphinx.util.osutil import copyfile, ensuredir, walk -if TYPE_CHECKING: +if False: + # For type annotation from typing import Callable, Dict, Union # NOQA from sphinx.util.matching import Matcher # NOQA from sphinx.util.template import BaseRenderer # NOQA |