diff --git a/mypy/build.py b/mypy/build.py index c3a2a7c12632..c358aeea0f47 100644 --- a/mypy/build.py +++ b/mypy/build.py @@ -21,8 +21,10 @@ from os.path import dirname, basename from typing import (AbstractSet, Dict, Iterable, Iterator, List, - NamedTuple, Optional, Set, Tuple, Union, TYPE_CHECKING) -if TYPE_CHECKING: + NamedTuple, Optional, Set, Tuple, Union) +# Can't use TYPE_CHECKING because it's not in the Python 3.5.1 stdlib +MYPY = False +if MYPY: from typing import Deque from mypy.nodes import (MypyFile, Node, ImportBase, Import, ImportFrom, ImportAll)