mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Fix mypy issues
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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]:
|
||||||
|
|||||||
Reference in New Issue
Block a user