summaryrefslogtreecommitdiff
path: root/src/pip/_internal/network/lazy_wheel.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2021-01-01 15:16:16 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2021-02-18 19:09:13 -0800
commita6392bd62e7d3b13698c4a4df64e5f51a5c67b9d (patch)
treece6be9c52903db89adafc11af298cd26eee63716 /src/pip/_internal/network/lazy_wheel.py
parentf7b5586e71f6c5721bedd801eb5ec862fe7d8917 (diff)
downloadpip-a6392bd62e7d3b13698c4a4df64e5f51a5c67b9d.tar.gz
Replace pip._internal.utils.typing with stdlib typing
The stdlib module has been available since Python 3.5 and the TYPE_CHECKING constant has been available since 3.5.2. By using stdlib, this removes the need for pip to maintain its own Python 2 typing compatibility shim.
Diffstat (limited to 'src/pip/_internal/network/lazy_wheel.py')
-rw-r--r--src/pip/_internal/network/lazy_wheel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pip/_internal/network/lazy_wheel.py b/src/pip/_internal/network/lazy_wheel.py
index c5176a4bb..fd7ab7f03 100644
--- a/src/pip/_internal/network/lazy_wheel.py
+++ b/src/pip/_internal/network/lazy_wheel.py
@@ -5,15 +5,15 @@ __all__ = ['HTTPRangeRequestUnsupported', 'dist_from_wheel_url']
from bisect import bisect_left, bisect_right
from contextlib import contextmanager
from tempfile import NamedTemporaryFile
+from typing import TYPE_CHECKING
from zipfile import BadZipfile, ZipFile
from pip._vendor.requests.models import CONTENT_CHUNK_SIZE
from pip._internal.network.utils import HEADERS, raise_for_status, response_chunks
-from pip._internal.utils.typing import MYPY_CHECK_RUNNING
from pip._internal.utils.wheel import pkg_resources_distribution_for_wheel
-if MYPY_CHECK_RUNNING:
+if TYPE_CHECKING:
from typing import Any, Dict, Iterator, List, Optional, Tuple
from pip._vendor.pkg_resources import Distribution