Skip to content

Commit

Permalink
Make ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
stellasphere committed Nov 25, 2024
1 parent 78b5303 commit e035b74
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions roboflow/core/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,11 +818,8 @@ def __download_zip(self, link, location, format):

def bar_progress(current, total, width=80):
progress_message = (
"Downloading Dataset Version Zip in "
+ location
+ " to "
+ format
+ ": %d%% [%d / %d] bytes" % (current / total * 100, current, total)
f"Downloading Dataset Version Zip in {location} to {format}: "
f"{current / total * 100:.0f}% [{current} / {total}] bytes"
)
sys.stdout.write("\r" + progress_message)
sys.stdout.flush()
Expand Down

0 comments on commit e035b74

Please sign in to comment.