Skip to content

Commit 5261bc3

Browse files
chore: fix mypy errors
1 parent fe9ae4b commit 5261bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/adventofcode/year_2015/day_20_2015.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def most_presents_at_house(houses: Dict[int, int]) -> int:
1616

1717

1818
def visit_houses(elf_count: int, target: int):
19-
houses = defaultdict(int)
19+
houses: Dict[int, int] = defaultdict(int)
2020

2121
for elf in range(1, target):
2222
for house in range(elf, elf_count, elf):
@@ -27,7 +27,7 @@ def visit_houses(elf_count: int, target: int):
2727

2828

2929
def visit_houses_part_two(elf_count: int, target: int):
30-
houses = defaultdict(int)
30+
houses: Dict[int, int] = defaultdict(int)
3131

3232
for elf in range(1, target):
3333
for house in range(elf, min([elf * 50 + 1, elf_count]), elf):

0 commit comments

Comments
 (0)