File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 13
13
Type ,
14
14
)
15
15
16
+ from pip ._vendor .rich .console import Console
16
17
from pip ._vendor .rich .live import Live
17
18
from pip ._vendor .rich .panel import Panel
18
19
from pip ._vendor .rich .progress import (
@@ -88,7 +89,7 @@ def _rich_progress_bar(
88
89
total = size
89
90
columns = _known_size_columns ()
90
91
91
- progress = Progress (* columns , refresh_per_second = 5 )
92
+ progress = Progress (* columns , console = Console ( stderr = True ), refresh_per_second = 5 )
92
93
task_id = progress .add_task (_progress_task_prefix (), total = total )
93
94
with progress :
94
95
for chunk in iterable :
@@ -327,7 +328,7 @@ def __enter__(self) -> "BatchedRichProgressBar":
327
328
padding = (0 , 0 ),
328
329
)
329
330
)
330
- self ._live = Live (table , refresh_per_second = 5 )
331
+ self ._live = Live (table , console = Console ( stderr = True ), refresh_per_second = 5 )
331
332
self ._task_progress .start_task (self ._total_task_id )
332
333
self ._progress .start_task (self ._total_bytes_task_id )
333
334
self ._live .__enter__ ()
You can’t perform that action at this time.
0 commit comments