✏️ fix typo in progressbar/tutorial004.py (#63)
In the tutorial, the length of the progress bar is set to 1000 and the update was mistakenly set to 2500. The update should be 1/4 of the length given that the loop runs for 4 iterations. This commit sets the update amount to 250 which better showcases the feature.
This commit is contained in:
parent
c304d80dea
commit
78d8367c75
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ def main():
|
|||
for batch in range(4):
|
||||
# Fake processing time
|
||||
time.sleep(1)
|
||||
progress.update(2500)
|
||||
progress.update(250)
|
||||
typer.echo(f"Processed {total} things in batches.")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue