mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 10:31:29 +08:00
Fix some ARG002 per file ignores (#11382)
* Fix some ARG002 per file ignores * Fix * updating DIRECTORY.md * Fix review issue * Fix review issue --------- Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com>
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
from abc import abstractmethod
|
||||
|
||||
from .number_theory.prime_numbers import next_prime
|
||||
|
||||
|
||||
@ -173,6 +175,7 @@ class HashTable:
|
||||
self.values[key] = data
|
||||
self._keys[key] = data
|
||||
|
||||
@abstractmethod
|
||||
def _collision_resolution(self, key, data=None):
|
||||
"""
|
||||
This method is a type of open addressing which is used for handling collision.
|
||||
|
@ -11,7 +11,7 @@ class QuadraticProbing(HashTable):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def _collision_resolution(self, key, data=None):
|
||||
def _collision_resolution(self, key, data=None): # noqa: ARG002
|
||||
"""
|
||||
Quadratic probing is an open addressing scheme used for resolving
|
||||
collisions in hash table.
|
||||
|
Reference in New Issue
Block a user