summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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