From 99ffcb7e578f17074db4a0085638dbd4d99e82a2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 06:28:37 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- data_structures/arrays/dynamic_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/arrays/dynamic_array.py b/data_structures/arrays/dynamic_array.py index 5c758ad37..356716073 100644 --- a/data_structures/arrays/dynamic_array.py +++ b/data_structures/arrays/dynamic_array.py @@ -78,7 +78,7 @@ class DynamicArray: if index < 0 or index >= self.size: raise IndexError("index out of range") return self.array[index] - + def __setitem__(self, index: int, value: int) -> None: if index < 0 or index >= self.size: raise IndexError("index out of range")