Fix type hints

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2022-12-01 11:39:36 +00:00
parent 745b85aeaf
commit 652bf4833b
No known key found for this signature in database
GPG key ID: AA5726202C8879B7

View file

@ -8,13 +8,13 @@ def parse(instr: str) -> List[List[int]]:
class Challenge(BaseChallenge):
@staticmethod
def one(instr: str) -> Any:
def one(instr: str) -> int:
parsed = parse(instr)
x = [sum(y) for y in parsed]
return max(x)
@staticmethod
def two(instr: str) -> Any:
def two(instr: str) -> int:
parsed = parse(instr)
x = [sum(y) for y in parsed]
x = list(sorted(x, reverse=True))