From bebaa56ba197ab3cf5230c070e11eab63568d538 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 10 Dec 2021 06:56:46 +0100 Subject: Fix typehint --- 2021/10/puzzles.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/2021/10/puzzles.py b/2021/10/puzzles.py index f423c43..bf6a923 100644 --- a/2021/10/puzzles.py +++ b/2021/10/puzzles.py @@ -1,8 +1,7 @@ #!/usr/bin/env python3 # START PART 1 -import collections -from typing import Counter +from collections import Counter # END PART 1 START PART 2 from functools import reduce # END PART 2 @@ -15,7 +14,7 @@ def main() -> None: data = list(map(lambda l: l.strip(), f.readlines())) # START PART 1 - counts: Counter[int] = Counter() + counts: Counter[char] = Counter() # END PART 1 START PART 2 scores: list[int] = [] # END PART 2 -- cgit v1.2.3