mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-08 23:05:54 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
7427a23e94
commit
99ffcb7e57
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user