changeset 49861 | ffeeaeb2d142 |
parent 49814 | 1d1b244a91b6 |
child 50684 | 82cf392c99f6 |
--- a/mercurial/util.py Thu Jan 05 17:45:25 2023 -0500 +++ b/mercurial/util.py Thu Jan 05 19:42:45 2023 -0500 @@ -60,6 +60,7 @@ if pycompat.TYPE_CHECKING: from typing import ( + Iterable, Iterator, List, Optional, @@ -2910,7 +2911,7 @@ def iterlines(iterator): - # type: (Iterator[bytes]) -> Iterator[bytes] + # type: (Iterable[bytes]) -> Iterator[bytes] for chunk in iterator: for line in chunk.splitlines(): yield line