mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Add type: ignore comment
This commit is contained in:
@@ -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