mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Add flake8-builtins to pre-commit and fix errors (#7105)
Ignore `A003` Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
@ -40,10 +40,10 @@ def search(
|
||||
else: # to choose the least costliest action so as to move closer to the goal
|
||||
cell.sort()
|
||||
cell.reverse()
|
||||
next = cell.pop()
|
||||
x = next[2]
|
||||
y = next[3]
|
||||
g = next[1]
|
||||
next_cell = cell.pop()
|
||||
x = next_cell[2]
|
||||
y = next_cell[3]
|
||||
g = next_cell[1]
|
||||
|
||||
if x == goal[0] and y == goal[1]:
|
||||
found = True
|
||||
|
Reference in New Issue
Block a user