We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb720f commit b3ec171Copy full SHA for b3ec171
unblob/iter_utils.py
@@ -1,7 +1,11 @@
1
import itertools
2
+from collections.abc import Iterable, Iterator
3
+from typing import TypeVar
4
5
+T = TypeVar("T")
6
-def pairwise(iterable):
7
+
8
+def pairwise(iterable: Iterable[T]) -> Iterator[tuple[T, T]]:
9
# Copied from Python 3.10
10
# pairwise('ABCDEFG') --> AB BC CD DE EF FG
11
a, b = itertools.tee(iterable)
0 commit comments