Skip to content

Commit

Permalink
Fixed Progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
harshitnagar22 authored Jan 29, 2025
1 parent 66ca391 commit 0bbb11d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from functools import wraps

from rich.progress import (
BarColumn,
Progress,
Expand Down Expand Up @@ -43,6 +43,7 @@ def wrapper(*args, **kwargs):
),
TextColumn("[orange1]{task.percentage:>3.0f}%"),
expand=False,
transient="pytest" not in sys.modules, # Disable transient during tests
)
progress.start()

Expand All @@ -68,7 +69,7 @@ def wrapper(*args, **kwargs):
task, completed=progress.tasks[task].total, refresh=True
)
progress.stop()
# clean up to make object pickable
# Clean up to make object pickable
self_obj._parent_progress = None
self_obj._progress_info = None

Expand Down

0 comments on commit 0bbb11d

Please sign in to comment.