From 1aeda229a1cbbeeddb8abd85456f9f3f6d03aea4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 15 Mar 2017 09:23:18 -0700 Subject: [PATCH] Can't use TYPE_CHECKING because it's not in the Python 3.5.1 stdlib --- mypy/build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)