daemon: formatting changes related to updating the python black formatter

This commit is contained in:
Blake Harnden 2023-02-03 15:53:44 -08:00
parent 4c351b0d72
commit 93272d6ed7
5 changed files with 10 additions and 10 deletions

View file

@ -56,7 +56,7 @@ def node_label_positions(
src_x: int, src_y: int, dst_x: int, dst_y: int
) -> Tuple[Tuple[float, float], Tuple[float, float]]:
v_x, v_y = dst_x - src_x, dst_y - src_y
v_len = math.sqrt(v_x ** 2 + v_y ** 2)
v_len = math.sqrt(v_x**2 + v_y**2)
if v_len == 0:
u_x, u_y = 0.0, 0.0
else:
@ -147,7 +147,7 @@ class Edge:
perp_m = -1 / m
b = mp_y - (perp_m * mp_x)
# get arc x and y
offset = math.sqrt(self.arc ** 2 / (1 + (1 / m ** 2)))
offset = math.sqrt(self.arc**2 / (1 + (1 / m**2)))
arc_x = mp_x
if self.arc >= 0:
arc_x += offset