Fix lgtm error display #1024 (#1190) · zinating/algorithms-python@04962c0 · GitHub
Skip to content

Commit 04962c0

Browse files
denis-trofimovcclauss
authored andcommitted
Fix lgtm error display TheAlgorithms#1024 (TheAlgorithms#1190)
* fix: Syntax Error lgtm display in matrix/matrix_operation.py. * Testing for None should use the 'is' operator. * fix: Too many arguments for string format. * fix: supress lgtm alert as false positive. * style: Unnecessary 'pass' statement. * Revert "fix: Syntax Error lgtm display in matrix/matrix_operation.py." This reverts commit 4c629b4.
1 parent a2b5a90 commit 04962c0

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

data_structures/heap/binomial_heap.py

Lines changed: 1 addition & 1 deletion

divide_and_conquer/convex_hull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def _validate_input(points):
191191
else:
192192
raise ValueError("Expecting an iterable of type Point, list or tuple. "
193193
"Found objects of type {} instead"
194-
.format(["point", "list", "tuple"], type(points[0])))
194+
.format(type(points[0])))
195195
elif not hasattr(points, "__iter__"):
196196
raise ValueError("Expecting an iterable object "
197197
"but got an non-iterable type {}".format(points))

neural_network/convolution_neural_network.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ def convolution(self, data):
297297

298298

299299
if __name__ == '__main__':
300-
pass
301300
'''
302301
I will put the example on other file
303-
'''
302+
'''

strings/boyer_moore_search.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)