From 7147c6088658f3edbe3674f32994e28bad72455a Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Fri, 12 Jun 2020 10:26:11 +0100 Subject: [PATCH] fix docs --- docs/source/progress.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/progress.rst b/docs/source/progress.rst index fce137a1..73522844 100644 --- a/docs/source/progress.rst +++ b/docs/source/progress.rst @@ -47,9 +47,9 @@ Here's a simple example:: Transient progress ~~~~~~~~~~~~~~~~~~ -Normally when you exit the progress context manager (or call :meth:`~rich.progress.Progress.stop`) the last refreshed display remains in the terminal with the cursor on the following line. You can also make the progress display disappear on exit by setting ``transient=False`` on the Progress constructor. Here's an example +Normally when you exit the progress context manager (or call :meth:`~rich.progress.Progress.stop`) the last refreshed display remains in the terminal with the cursor on the following line. You can also make the progress display disappear on exit by setting ``transient=True`` on the Progress constructor. Here's an example:: - with Progress(transient=False) as progress: + with Progress(transient=True) as progress: task = progress.add_task("Working", total=100) do_work(task)