mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
* 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 4c629b4ce16a32b99a8127f5553cdb9015bf5e80.
This commit is contained in:

committed by
Christian Clauss

parent
a2b5a90c11
commit
04962c0d17
@ -191,7 +191,7 @@ def _validate_input(points):
|
||||
else:
|
||||
raise ValueError("Expecting an iterable of type Point, list or tuple. "
|
||||
"Found objects of type {} instead"
|
||||
.format(["point", "list", "tuple"], type(points[0])))
|
||||
.format(type(points[0])))
|
||||
elif not hasattr(points, "__iter__"):
|
||||
raise ValueError("Expecting an iterable object "
|
||||
"but got an non-iterable type {}".format(points))
|
||||
|
Reference in New Issue
Block a user