Skip to content

Commit

Permalink
add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-101 committed Jul 19, 2022
1 parent 230166e commit 7c140eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patterns/behavioral/iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""


def count_to(count):
def count_to(count: int):
"""Counts by word numbers, up to a maximum of five"""
numbers = ["one", "two", "three", "four", "five"]
yield from numbers[:count]
Expand Down

0 comments on commit 7c140eb

Please sign in to comment.