From 2f8403a60126a4ab0c0785e6d605494803e9febf Mon Sep 17 00:00:00 2001 From: cross32768 Date: Fri, 30 Jun 2023 15:03:54 +0900 Subject: [PATCH] trial for mypy error --- optuna_dashboard/_streamlit_helper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/optuna_dashboard/_streamlit_helper.py b/optuna_dashboard/_streamlit_helper.py index eeb28542..9a924698 100644 --- a/optuna_dashboard/_streamlit_helper.py +++ b/optuna_dashboard/_streamlit_helper.py @@ -58,8 +58,7 @@ def _render_widgets( values.append(value) elif widget["type"] == "text": # NOTE: Current implementation ignores "optional". - value = st.text_input(description) - values.append(value) + values.append(st.text_input(description)) else: raise ValueError("Widget type should be 'choice', 'slider' or 'text'.") submitted = st.form_submit_button("Submit")