Skip to content

Commit

Permalink
Queue is apparently not subscriptable in py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Aug 19, 2024
1 parent 3ed81dc commit e0dab39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pip/_internal/network/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __call__(self, link: Link, location: str) -> Tuple[str, str]:


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

0 comments on commit e0dab39

Please sign in to comment.