From 78d8367c75cec5d918a3cef22e89d3e5109c68e1 Mon Sep 17 00:00:00 2001 From: Valentin Calomme Date: Thu, 19 Mar 2020 07:45:45 +0100 Subject: [PATCH] :pencil2: 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. --- docs/src/progressbar/tutorial004.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/progressbar/tutorial004.py b/docs/src/progressbar/tutorial004.py index 957630b..3c08120 100644 --- a/docs/src/progressbar/tutorial004.py +++ b/docs/src/progressbar/tutorial004.py @@ -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.")