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 5439975 commit cb68990Copy full SHA for cb68990
typetests/test_itertools.py
@@ -56,6 +56,16 @@ async def test_tee() -> None:
56
assert_type(x, int)
57
58
59
+async def test_tee_iter() -> None:
60
+ x1, x2 = itertools.tee([1], n=2)
61
+ assert_type(x1, AsyncIterator[int])
62
+ assert_type(x2, AsyncIterator[int])
63
+
64
+ for xi in itertools.tee([1], n=2):
65
+ async for x in xi:
66
+ assert_type(x, int)
67
68
69
async def test_pairwise() -> None:
70
async for x in itertools.pairwise([1]):
71
assert_type(x, "tuple[int, int]")
0 commit comments