From 7a57410b96dad7fdf11539f76a4b400f61a24cd2 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Tue, 20 Nov 2018 01:15:39 -0500 Subject: [PATCH] Stage missed environment file for pythonfinder Signed-off-by: Dan Ryan --- pipenv/vendor/pythonfinder/environment.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pipenv/vendor/pythonfinder/environment.py b/pipenv/vendor/pythonfinder/environment.py index 0ea09109..5e93567f 100644 --- a/pipenv/vendor/pythonfinder/environment.py +++ b/pipenv/vendor/pythonfinder/environment.py @@ -4,6 +4,12 @@ import os import platform import sys + +def is_type_checking(): + from typing import TYPE_CHECKING + return TYPE_CHECKING + + PYENV_INSTALLED = bool(os.environ.get("PYENV_SHELL")) or bool( os.environ.get("PYENV_ROOT") ) @@ -24,3 +30,4 @@ else: IGNORE_UNSUPPORTED = bool(os.environ.get("PYTHONFINDER_IGNORE_UNSUPPORTED", False)) +MYPY_RUNNING = os.environ.get("MYPY_RUNNING", is_type_checking())