Skip to content

Commit 300cec4

Browse files
authored
Merge pull request #13720 from danielhollas/fix-circular-import
Fix circular import
2 parents 11c06ff + f7f1b84 commit 300cec4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pip/_internal/cli/progress_bars.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import functools
44
import sys
55
from collections.abc import Generator, Iterable, Iterator
6-
from typing import Callable, Literal, TypeVar
6+
from typing import TYPE_CHECKING, Callable, Literal, TypeVar
77

88
from pip._vendor.rich.progress import (
99
BarColumn,
@@ -20,9 +20,11 @@
2020
)
2121

2222
from pip._internal.cli.spinners import RateLimiter
23-
from pip._internal.req.req_install import InstallRequirement
2423
from pip._internal.utils.logging import get_console, get_indentation
2524

25+
if TYPE_CHECKING:
26+
from pip._internal.req.req_install import InstallRequirement
27+
2628
T = TypeVar("T")
2729
ProgressRenderer = Callable[[Iterable[T]], Iterator[T]]
2830
BarType = Literal["on", "off", "raw"]

0 commit comments

Comments
 (0)