Skip to content

Commit 916c130

Browse files
committed
Fix review issue
1 parent 2c9b0cf commit 916c130

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

data_structures/hashing/hash_table.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
from abc import abstractmethod
3+
24
from .number_theory.prime_numbers import next_prime
35

46

@@ -173,7 +175,8 @@ def _set_value(self, key, data):
173175
self.values[key] = data
174176
self._keys[key] = data
175177

176-
def _collision_resolution(self, key, data=None): # noqa: ARG002
178+
@abstractmethod
179+
def _collision_resolution(self, key, data=None):
177180
"""
178181
This method is a type of open addressing which is used for handling collision.
179182

0 commit comments

Comments
 (0)