Skip to content

Commit e0dab39

Browse files
Queue is apparently not subscriptable in py3.8
1 parent 3ed81dc commit e0dab39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pip/_internal/network/download.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __call__(self, link: Link, location: str) -> Tuple[str, str]:
159159

160160

161161
def _copy_chunks(
162-
output_queue: Queue[Union[Tuple[Link, Path, Optional[str]], BaseException]],
162+
output_queue: "Queue[Union[Tuple[Link, Path, Optional[str]], BaseException]]",
163163
event: Event,
164164
semaphore: Semaphore,
165165
session: PipSession,
@@ -222,7 +222,7 @@ def __call__(
222222
# Set up state to track thread progress, including inner exceptions.
223223
total_downloads: int = len(links)
224224
completed_downloads: int = 0
225-
q: Queue[Union[Tuple[Link, Path, Optional[str]], BaseException]] = Queue()
225+
q: "Queue[Union[Tuple[Link, Path, Optional[str]], BaseException]]" = Queue()
226226
event = Event()
227227
# Limit downloads to 10 at a time so we can reuse our connection pool.
228228
semaphore = Semaphore(value=10)

0 commit comments

Comments
 (0)