We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5159950 commit 938ec08Copy full SHA for 938ec08
src/pip/_internal/network/download.py
@@ -6,9 +6,10 @@
6
import logging
7
import mimetypes
8
import os
9
-from collections.abc import Iterable
+from collections.abc import Iterable, Mapping
10
+from dataclasses import dataclass
11
from http import HTTPStatus
-from typing import BinaryIO, Mapping
12
+from typing import BinaryIO
13
14
from pip._vendor.requests.models import Response
15
from pip._vendor.urllib3.exceptions import ReadTimeoutError
@@ -140,7 +141,7 @@ class _FileDownload:
140
141
142
link: Link
143
output_file: BinaryIO
- size: Optional[int]
144
+ size: int | None
145
bytes_received: int = 0
146
reattempts: int = 0
147
0 commit comments