Fix mypy issues

This commit is contained in:
2021-01-30 10:09:19 +01:00
parent 43c063cef9
commit eff22abf8a
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ def part1(data: TextIO) -> int:
computer = Computer(read_program(data)) computer = Computer(read_program(data))
computer.run() computer.run()
screen = {} screen: Dict[Tuple[int, int], int] = {}
render_screen(computer, screen) render_screen(computer, screen)
@@ -29,7 +29,7 @@ def part2(data: TextIO) -> int:
computer.program[0] = 2 computer.program[0] = 2
screen = {} screen: Dict[Tuple[int, int], int] = {}
finished = False finished = False

View File

@@ -2,7 +2,7 @@ import math
from collections import defaultdict from collections import defaultdict
from typing import TextIO, Tuple 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]: def read_pair(item: str) -> Tuple[str, int]: