Skip to content

Commit 7837c10

Browse files
committed
Add type annotations in static_plotter and rename a variable
1 parent 040570d commit 7837c10

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/plots/static_plotter.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525

2626
def main(
2727
*,
28-
gradients=False,
29-
cone=False,
30-
projections=False,
31-
upgrad=False,
32-
mean=False,
33-
dual_proj=False,
34-
mgda=False,
28+
gradients: bool = False,
29+
cone: bool = False,
30+
projections: bool = False,
31+
upgrad: bool = False,
32+
mean: bool = False,
33+
dual_proj: bool = False,
34+
mgda: bool = False,
3535
) -> None:
3636
angle1 = 2.6
3737
angle2 = 0.3277
@@ -76,13 +76,13 @@ def main(
7676
if cone:
7777
filename += "_cone"
7878
start_angle, opening = compute_2d_non_conflicting_cone(matrix.numpy())
79-
cone = make_cone_scatter(
79+
cone_scatter = make_cone_scatter(
8080
start_angle,
8181
opening,
8282
label="Non-conflicting cone",
8383
printable=False,
8484
)
85-
fig.add_trace(cone)
85+
fig.add_trace(cone_scatter)
8686

8787
if projections:
8888
filename += "_projections"

0 commit comments

Comments
 (0)