From 47593c4b049202bdd6f245f7c0a83d58fb0ddb65 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Tue, 8 Oct 2019 12:59:08 +0530 Subject: [PATCH] Apply suggestions from code review --- src/pip/_internal/utils/virtualenv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pip/_internal/utils/virtualenv.py b/src/pip/_internal/utils/virtualenv.py index 8a195123bdc..ffc401ad104 100644 --- a/src/pip/_internal/utils/virtualenv.py +++ b/src/pip/_internal/utils/virtualenv.py @@ -8,7 +8,7 @@ from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: - from typing import Optional, List + from typing import List, Optional logger = logging.getLogger(__name__) @@ -34,7 +34,7 @@ def _running_under_regular_virtualenv(): def running_under_virtualenv(): # type: () -> bool - """Return a boolean, whether running under a virtual environment. + """Return True if we're running inside a virtualenv, False otherwise. """ return _running_under_venv() or _running_under_regular_virtualenv()