AOCDay.getInput() always return a copy, never a reference to self.input

This commit is contained in:
Stefan Harmuth 2021-12-03 06:56:17 +01:00
parent d0c5e319fb
commit 1c87545892

2
aoc.py
View File

@ -63,7 +63,7 @@ class AOCDay:
if len(self.input) == 1:
return self.input[0]
else:
return self.input
return self.input.copy()
def getInputListAsType(self, return_type: Type) -> List:
"""