diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-12-14 14:32:33 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-12-14 14:32:33 +0000 |
commit | 26e310aeb37169d4d739dce00528bff944c9386f (patch) | |
tree | 290642d36ca73d556fdae95379315bd5885808bf | |
parent | 1b1d5350680b3dee215443143d166424793374d7 (diff) | |
download | aoc2023-26e310aeb37169d4d739dce00528bff944c9386f.tar.gz aoc2023-26e310aeb37169d4d739dce00528bff944c9386f.tar.xz aoc2023-26e310aeb37169d4d739dce00528bff944c9386f.zip |
annotate xlate
-rw-r--r-- | 14.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |