fix type hints on day 14 and 15 for readFile
This commit is contained in:
parent
5f2a520e43
commit
7235d5b804
@ -3,7 +3,7 @@
|
||||
#
|
||||
#https://adventofcode.com/2020/day/14
|
||||
|
||||
def readFile() -> tuple:
|
||||
def readFile() -> list:
|
||||
with open(f"{__file__.rstrip('code.py')}input.txt", "r") as f:
|
||||
return [line.strip().split(" = ") for line in f.readlines()]
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
#https://adventofcode.com/2020/day/15
|
||||
|
||||
def readFile() -> tuple:
|
||||
def readFile() -> list:
|
||||
with open(f"{__file__.rstrip('code.py')}input.txt", "r") as f:
|
||||
return [int(num) for num in f.readline().split(",")]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user