From 01433d2a637bbe2912f815d6cb5b93fa4e286577 Mon Sep 17 00:00:00 2001 From: cross32768 Date: Fri, 30 Jun 2023 14:38:38 +0900 Subject: [PATCH] move type: ignore --- optuna_dashboard/_streamlit_helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/optuna_dashboard/_streamlit_helper.py b/optuna_dashboard/_streamlit_helper.py index 5155fd07..b3642409 100644 --- a/optuna_dashboard/_streamlit_helper.py +++ b/optuna_dashboard/_streamlit_helper.py @@ -28,7 +28,7 @@ def _format_choice(choice: float, widget: ChoiceWidgetJSON) -> str: def _render_widgets( widgets: list[ChoiceWidgetJSON | SliderWidgetJSON | TextInputWidgetJSON], -) -> tuple[bool, list[str]]: +) -> tuple[bool, list[str | float]]: values = [] with st.form("user_input", clear_on_submit=False): for widget in widgets: @@ -41,9 +41,9 @@ def _render_widgets( value = st.radio( description, widget["values"], - format_func=lambda choice, widget=widget: _format_choice( + format_func=lambda choice, widget=widget: _format_choice( # type: ignore choice, widget - ), # type: ignore + ), horizontal=True, ) values.append(value)