AOCDay.getInput() always return a copy, never a reference to self.input
This commit is contained in:
parent
d0c5e319fb
commit
1c87545892
2
aoc.py
2
aoc.py
@ -63,7 +63,7 @@ class AOCDay:
|
|||||||
if len(self.input) == 1:
|
if len(self.input) == 1:
|
||||||
return self.input[0]
|
return self.input[0]
|
||||||
else:
|
else:
|
||||||
return self.input
|
return self.input.copy()
|
||||||
|
|
||||||
def getInputListAsType(self, return_type: Type) -> List:
|
def getInputListAsType(self, return_type: Type) -> List:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user