From 26e310aeb37169d4d739dce00528bff944c9386f Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 14 Dec 2023 14:32:33 +0000 Subject: annotate xlate --- 14.py | 2 ++ 1 file changed, 2 insertions(+) (limited to '14.py') 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 -- cgit v1.2.3-54-g00ecf