From 1c87545892015db469c900245d8d0cd83c0993d4 Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Fri, 3 Dec 2021 06:56:17 +0100 Subject: [PATCH] AOCDay.getInput() always return a copy, never a reference to self.input --- aoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aoc.py b/aoc.py index 731f7e9..ee3781f 100644 --- a/aoc.py +++ b/aoc.py @@ -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: """