1# Iterator
2def infinite_stream(start: int) -> Iterator[int]:
3 while True:
4 yield start
5 start += 1
6
7# Generator
8def infinite_stream(start: int) -> Generator[int, None, None]:
9 while True:
10 yield start
11 start += 1
12