Skip to content

Commit

Permalink
fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tangruize committed May 9, 2024
1 parent 1f6c056 commit 2584f28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dijkstra/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ def check(oracle, to_check) -> bool:
else:
print('FAIL')
print('Input :', testcase)
for i in range(len(result)):
print(ref[i],result[i])
for i, j in zip(ref, result):
print(i, j)
sys.exit(1)
2 changes: 1 addition & 1 deletion frequent_element/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import sys
from collections import Counter
from get_input import get_input # pylint: disable=wrong-import-position # noqa
from critical_op import equal_op # pylint: disable=wrong-import-position # noqa
from critical_op import equal_op # pylint: disable=wrong-import-position, no-name-in-module # noqa
from frequent_element import frequent_element


Expand Down
2 changes: 1 addition & 1 deletion frequent_element/frequent_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

from get_input import get_input # pylint: disable=wrong-import-position # noqa
from critical_op import equal_op # pylint: disable=wrong-import-position # noqa
from critical_op import equal_op # pylint: disable=wrong-import-position, no-name-in-module # noqa


def count_frequent(array: list, target: int) -> int:
Expand Down

0 comments on commit 2584f28

Please sign in to comment.