Skip to content

Commit

Permalink
fix: progress-bar-docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ictorv committed Jan 29, 2025
1 parent d297b58 commit 6c2c5f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion skore/src/skore/utils/_progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
def progress_decorator(description):
"""Decorate class methods to add a progress bar.
This decorator adds a Rich progress bar to class methods, displaying progress
during execution. The progress bar automatically disappears after completion.
Parameters
----------
description : str or callable
Expand Down Expand Up @@ -43,7 +46,7 @@ def wrapper(*args, **kwargs):
),
TextColumn("[orange1]{task.percentage:>3.0f}%"),
expand=False,
transient=True
transient=True,
)
progress.start()

Expand Down

0 comments on commit 6c2c5f3

Please sign in to comment.