Skip to content
Myr

Merge pull request #1296 from nathanielcompton/1158_Docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update progressbar docstrings

authored by Jay Crotts · committed by GitHub · parents afff366, defe6c0 · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:click/termui.py+7 added-1 removed
270 unmodified lines
271 to calculate remaining time and more. By default, this progress bar272 will not be rendered if the file is not a terminal.273274 The context manager creates the progress bar. When the context275 manager is entered the progress bar is already displayed. With every275 manager is entered the progress bar is already created. With every276 iteration over the progress bar, the iterable passed to the bar is277 advanced and the bar is updated. When the context manager exits,278 a newline is printed and the progress bar is finalized on screen.279280 Note: The progress bar is currently designed for use cases where the281 total progress can be expected to take at least several seconds.282 Because of this, the ProgressBar class object won't display283 progress that is considered too fast, and progress where the time284 between steps is less than a second.285286 No printing must happen or the progress bar will be unintentionally287 destroyed.288289 Example usage::
323 unmodified lines