Browse Source

Correcting typing

pull/2/head
Ryan Reed 3 years ago
parent
commit
1806adfc26
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      puzzles/day02.py

+ 2
- 2
puzzles/day02.py View File

@ -28,7 +28,7 @@ class Location:
return self.calculate() return self.calculate()
def calculate(self):
def calculate(self) -> int:
return self.horizontal * self.depth return self.horizontal * self.depth
@ -65,7 +65,7 @@ def part2(inputs: List[int]) -> int:
return puzzle.run(inputs) return puzzle.run(inputs)
def parse(inputs: str) -> List[List[str]]:
def parse(inputs: str) -> List[str]:
"""Parse the input string""" """Parse the input string"""
return inputs.split("\n") return inputs.split("\n")


Loading…
Cancel
Save