Skip to content

Commit 08821b2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f2006c1 commit 08821b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎other/cheap_progress‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ from sys import stderr
55
def progress[T](items: Iterable[T], desc: str = "", total: int = 0) -> Iterator[T]:
66
"""
77
A simple progress iterator that yields items from the given iterable while
8-
displaying a progress indicator in place on a single line of stderr. The output is
8+
displaying a progress indicator in place on a single line of stderr. The output is
99
not written to stdout, so the output of the program remains clean (see doctests).
1010

1111
for item in progress(range(1_000), desc="Processing"):
@@ -19,7 +19,7 @@ def progress[T](items: Iterable[T], desc: str = "", total: int = 0) -> Iterator[
1919

2020
Yields:
2121
Iterator[T]: The items from the iterable, one by one.
22-
22+
2323
>>> tuple(progress(range(5)))
2424
(0, 1, 2, 3, 4)
2525
>>> tuple(progress(range(5), desc="Processing", total=3))

0 commit comments

Comments
 (0)