mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-03 12:41:13 +08:00
trial for mypy error
This commit is contained in:
1 parent
56c6d72c45
commit
2f8403a601
1 file changed
+1
-2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user