Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
adjeiv committed Aug 3, 2023
1 parent ac7bf18 commit 0da819e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion optuna/visualization/_intermediate_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _get_intermediate_plot(info: _IntermediatePlotInfo) -> "go.Figure":
mode="lines+markers",
marker=default_marker
if tinfo.feasible
else {**default_marker, "color": "#CCCCCC"},
else {**default_marker, "color": "#CCCCCC"}, # type: ignore[dict-item]
name="Trial{}".format(tinfo.trial_number),
)
for tinfo in trial_infos
Expand Down
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_intermediate_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def constraints(trial: FrozenTrial) -> Sequence[float]:
),
_TrialInfo(
trial_number=1, sorted_intermediate_values=[(1, 2.0), (0, 1.0)], feasible=False
)
),
]
),
],
Expand Down

0 comments on commit 0da819e

Please sign in to comment.