Skip to content

Commit 7c140eb

Browse files
committed
add type hints
1 parent 230166e commit 7c140eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patterns/behavioral/iterator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99

10-
def count_to(count):
10+
def count_to(count: int):
1111
"""Counts by word numbers, up to a maximum of five"""
1212
numbers = ["one", "two", "three", "four", "five"]
1313
yield from numbers[:count]

0 commit comments

Comments
 (0)