Skip to content

Commit ac7e70f

Browse files
committed
Fix some ARG002 per file ignores
1 parent d016fda commit ac7e70f

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

audio_filters/show_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class FilterType(Protocol):
11-
def process(self, sample: float) -> float:
11+
def process(self, sample: float) -> float: # noqa: ARG002
1212
"""
1313
Calculate y[n]
1414

data_structures/hashing/hash_table.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _set_value(self, key, data):
173173
self.values[key] = data
174174
self._keys[key] = data
175175

176-
def _collision_resolution(self, key, data=None):
176+
def _collision_resolution(self, key):
177177
"""
178178
This method is a type of open addressing which is used for handling collision.
179179
@@ -266,7 +266,7 @@ def insert_data(self, data):
266266
pass
267267

268268
else:
269-
collision_resolution = self._collision_resolution(key, data)
269+
collision_resolution = self._collision_resolution(key)
270270
if collision_resolution is not None:
271271
self._set_value(collision_resolution, data)
272272
else:

data_structures/hashing/quadratic_probing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class QuadraticProbing(HashTable):
1111
def __init__(self, *args, **kwargs):
1212
super().__init__(*args, **kwargs)
1313

14-
def _collision_resolution(self, key, data=None):
14+
def _collision_resolution(self, key):
1515
"""
1616
Quadratic probing is an open addressing scheme used for resolving
1717
collisions in hash table.

pyproject.toml

-3
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,8 @@ max-complexity = 17 # default: 10
7676

7777
[tool.ruff.lint.per-file-ignores]
7878
"arithmetic_analysis/newton_raphson.py" = ["PGH001"]
79-
"audio_filters/show_response.py" = ["ARG002"]
8079
"data_structures/binary_tree/binary_search_tree_recursive.py" = ["BLE001"]
8180
"data_structures/binary_tree/treap.py" = ["SIM114"]
82-
"data_structures/hashing/hash_table.py" = ["ARG002"]
83-
"data_structures/hashing/quadratic_probing.py" = ["ARG002"]
8481
"data_structures/hashing/tests/test_hash_map.py" = ["BLE001"]
8582
"data_structures/heap/max_heap.py" = ["SIM114"]
8683
"graphs/minimum_spanning_tree_prims.py" = ["SIM114"]

0 commit comments

Comments
 (0)