Skip to content

Commit 938ec08

Browse files
committed
Fix issues after the typing merge conflict
1 parent 5159950 commit 938ec08

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pip/_internal/network/download.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
import logging
77
import mimetypes
88
import os
9-
from collections.abc import Iterable
9+
from collections.abc import Iterable, Mapping
10+
from dataclasses import dataclass
1011
from http import HTTPStatus
11-
from typing import BinaryIO, Mapping
12+
from typing import BinaryIO
1213

1314
from pip._vendor.requests.models import Response
1415
from pip._vendor.urllib3.exceptions import ReadTimeoutError
@@ -140,7 +141,7 @@ class _FileDownload:
140141

141142
link: Link
142143
output_file: BinaryIO
143-
size: Optional[int]
144+
size: int | None
144145
bytes_received: int = 0
145146
reattempts: int = 0
146147

0 commit comments

Comments
 (0)