Skip to content

Commit

Permalink
Use Iterable type instead of Iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Katzuv committed Dec 2, 2021
1 parent 5675ce9 commit ba05a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2021/d01/p2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
_DEFAULT_WINDOW_SIZE = 3


def get_measurements_windows(measurements: Iterator[int], window_size: int = _DEFAULT_WINDOW_SIZE) -> Iterable[
def get_measurements_windows(measurements: Iterable[int], window_size: int = _DEFAULT_WINDOW_SIZE) -> Iterable[
tuple[int]]:
"""
Create sliding windows of measurements and return them.
Expand Down

0 comments on commit ba05a2a

Please sign in to comment.