Skip to content

Commit eabf084

Browse files
author
Dan Katzuv
committed
Use Iterable type instead of Iterator
1 parent 5675ce9 commit eabf084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2021/d01/p2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from typing import Iterator, Iterable
1+
from typing import Iterable
22

33
from p1 import INPUT_FILE_PATH, get_measurements_from_input, get_depth_measurements_increases
44

55

66
_DEFAULT_WINDOW_SIZE = 3
77

88

9-
def get_measurements_windows(measurements: Iterator[int], window_size: int = _DEFAULT_WINDOW_SIZE) -> Iterable[
9+
def get_measurements_windows(measurements: Iterable[int], window_size: int = _DEFAULT_WINDOW_SIZE) -> Iterable[
1010
tuple[int]]:
1111
"""
1212
Create sliding windows of measurements and return them.

0 commit comments

Comments
 (0)