✏️ 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:
Valentin Calomme 2020-03-19 07:45:45 +01:00 committed by GitHub
parent c304d80dea
commit 78d8367c75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.")