From a0ed9cc86efe13fdd5540e3c3272fd99f7ab3eff Mon Sep 17 00:00:00 2001 From: cross32768 Date: Fri, 30 Jun 2023 14:31:42 +0900 Subject: [PATCH] Add type: ignore --- optuna_dashboard/_streamlit_helper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/optuna_dashboard/_streamlit_helper.py b/optuna_dashboard/_streamlit_helper.py index 05903e6e..5155fd07 100644 --- a/optuna_dashboard/_streamlit_helper.py +++ b/optuna_dashboard/_streamlit_helper.py @@ -41,7 +41,9 @@ def _render_widgets( value = st.radio( description, widget["values"], - format_func=lambda choice, widget=widget: _format_choice(choice, widget), + format_func=lambda choice, widget=widget: _format_choice( + choice, widget + ), # type: ignore horizontal=True, ) values.append(value) @@ -139,5 +141,5 @@ def render_objective_form_widgets(study: optuna.Study, trial: FrozenTrial) -> No submitted, values = _render_widgets(widgets) # type: ignore if submitted: - study.tell(trial.number, values) + study.tell(trial.number, values) # type: ignore st.success("Submitted!")