summaryrefslogtreecommitdiffstats
path: root/14.py
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2023-12-14 14:32:33 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2023-12-14 14:32:33 +0000
commit26e310aeb37169d4d739dce00528bff944c9386f (patch)
tree290642d36ca73d556fdae95379315bd5885808bf /14.py
parent1b1d5350680b3dee215443143d166424793374d7 (diff)
downloadaoc2023-26e310aeb37169d4d739dce00528bff944c9386f.tar.gz
aoc2023-26e310aeb37169d4d739dce00528bff944c9386f.tar.xz
aoc2023-26e310aeb37169d4d739dce00528bff944c9386f.zip
annotate xlate
Diffstat (limited to '14.py')
-rw-r--r--14.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/14.py b/14.py
index 7047839..4768a19 100644
--- a/14.py
+++ b/14.py
@@ -1,4 +1,5 @@
# pyright: strict
+from collections.abc import Callable
from enum import Enum, auto
from itertools import chain, count
from sys import stdin
@@ -50,6 +51,7 @@ class Platform:
self.height = len(state)
def settle(self, direction: Dir):
+ xlate: Callable[[int, int], int]
if direction in {Dir.NORTH, Dir.SOUTH}:
lines = self.width
line_length = self.height