summaryrefslogtreecommitdiff
path: root/sphinx/util/pycompat.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/pycompat.py')
-rw-r--r--sphinx/util/pycompat.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py
index f1d044a73..8bcf7e4f8 100644
--- a/sphinx/util/pycompat.py
+++ b/sphinx/util/pycompat.py
@@ -8,15 +8,14 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import absolute_import
import codecs
import sys
-from typing import TYPE_CHECKING
from six import PY3, text_type, exec_
-if TYPE_CHECKING:
+if False:
+ # For type annotation
from typing import Any, Callable, Generator # NOQA