mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-28 13:11:26 +08:00
Add type: ignore comment
This commit is contained in:
1 parent
188b88f26b
commit
abefb6d030
1 file changed
+2
-3
@@ -258,7 +258,7 @@ def create_app(storage: BaseStorage, debug: bool = False) -> Bottle:
|
||||
else StudyDirection.MINIMIZE
|
||||
for d in directions
|
||||
],
|
||||
)
|
||||
) # type: ignore
|
||||
else:
|
||||
study_id = storage.create_new_study(study_name)
|
||||
storage.set_study_directions(
|
||||
@@ -269,8 +269,7 @@ def create_app(storage: BaseStorage, debug: bool = False) -> Bottle:
|
||||
else StudyDirection.MINIMIZE
|
||||
for d in directions
|
||||
],
|
||||
)
|
||||
|
||||
) # type: ignore
|
||||
except DuplicatedStudyError:
|
||||
response.status = 400 # Bad request
|
||||
return {"reason": f"'{study_name}' is already exists"}
|
||||
|
||||
Reference in new issue
Block a user