Skip to content

Commit b710db5

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent 9eb50cc commit b710db5

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

divide_and_conquer/convex_hull.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ def _validate_input(points):
200200
)
201201
elif not hasattr(points, "__iter__"):
202202
raise ValueError(
203-
"Expecting an iterable object "
204-
f"but got an non-iterable type {points}"
203+
"Expecting an iterable object " f"but got an non-iterable type {points}"
205204
)
206205
except TypeError as e:
207206
print("Expecting an iterable of type Point, list or tuple.")

graphs/dijkstra_algorithm.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ def show_graph(self):
104104
# u -> v(w)
105105
for u in self.adjList:
106106
print(
107-
u,
108-
"->",
109-
" -> ".join(str(f"{v}({w})") for v, w in self.adjList[u]),
107+
u, "->", " -> ".join(str(f"{v}({w})") for v, w in self.adjList[u]),
110108
)
111109

112110
def dijkstra(self, src):

machine_learning/sequential_minimum_optimization.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,7 @@ def test_cancel_data():
499499
for i in range(test_tags.shape[0]):
500500
if test_tags[i] == predict[i]:
501501
score += 1
502-
print(
503-
f"\r\nall: {test_num}\r\nright: {score}\r\nfalse: {test_num - score}"
504-
)
502+
print(f"\r\nall: {test_num}\r\nright: {score}\r\nfalse: {test_num - score}")
505503
print(f"Rough Accuracy: {score / test_tags.shape[0]}")
506504

507505

0 commit comments

Comments
 (0)