mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 18:49:26 +08:00
Add Flake8 comprehensions to pre-commit (#7235)
* ci(pre-commit): Add ``flake8-comprehensions`` to ``pre-commit`` (#7233) * refactor: Fix ``flake8-comprehensions`` errors * fix: Replace `map` with generator (#7233) * fix: Cast `range` objects to `list`
This commit is contained in:
@ -34,7 +34,7 @@ class HashTable:
|
||||
def _step_by_step(self, step_ord):
|
||||
|
||||
print(f"step {step_ord}")
|
||||
print([i for i in range(len(self.values))])
|
||||
print(list(range(len(self.values))))
|
||||
print(self.values)
|
||||
|
||||
def bulk_insert(self, values):
|
||||
|
Reference in New Issue
Block a user