From eff22abf8a194c465ac4b4c996d678696b87f2c2 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sat, 30 Jan 2021 10:09:19 +0100 Subject: [PATCH] Fix mypy issues --- 2019/aoc2019/day13.py | 4 ++-- 2019/aoc2019/day14.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/2019/aoc2019/day13.py b/2019/aoc2019/day13.py index 6e9337c..5aea8bd 100644 --- a/2019/aoc2019/day13.py +++ b/2019/aoc2019/day13.py @@ -17,7 +17,7 @@ def part1(data: TextIO) -> int: computer = Computer(read_program(data)) computer.run() - screen = {} + screen: Dict[Tuple[int, int], int] = {} render_screen(computer, screen) @@ -29,7 +29,7 @@ def part2(data: TextIO) -> int: computer.program[0] = 2 - screen = {} + screen: Dict[Tuple[int, int], int] = {} finished = False diff --git a/2019/aoc2019/day14.py b/2019/aoc2019/day14.py index f641ccd..2530837 100644 --- a/2019/aoc2019/day14.py +++ b/2019/aoc2019/day14.py @@ -2,7 +2,7 @@ import math from collections import defaultdict from typing import TextIO, Tuple -from networkx import DiGraph, topological_sort +from networkx import DiGraph, topological_sort # type: ignore[import] def read_pair(item: str) -> Tuple[str, int]: