fix by lint

This commit is contained in:
moririn2528
2023-09-01 12:12:30 +09:00
parent b09e223e17
commit 3e13de1b76
5 changed files with 4 additions and 7 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
from __future__ import annotations
from datetime import datetime
import functools
import logging
import os
@@ -263,7 +262,7 @@ def create_app(
}
note.save_note_with_version(storage, study_id, None, req_note_ver, req_note_body)
response.status = 204 # No contenthttps://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportUndefinedVariable
response.status = 204 # No content
return {}
@app.post("/api/studies/<study_id:int>/preference")
-1
View File
@@ -1,6 +1,5 @@
from __future__ import annotations
from datetime import datetime
import json
from typing import Any
from typing import TYPE_CHECKING
+1 -1
View File
@@ -97,7 +97,7 @@ export const App: FC = () => {
}
/>
<Route
path={URL_PREFIX + "/studies/:studyId/preferenceHistory"}
path={URL_PREFIX + "/studies/:studyId/preference-history"}
element={
<StudyDetail
toggleColorMode={toggleColorMode}
+1 -1
View File
@@ -219,7 +219,7 @@ export const AppDrawer: FC<{
>
<ListItemButton
component={Link}
to={`${URL_PREFIX}/studies/${studyId}/preferenceHistory`}
to={`${URL_PREFIX}/studies/${studyId}/preference-history`}
sx={styleListItemButton}
selected={page === "analytics"}
>
+1 -2
View File
@@ -1,12 +1,11 @@
from __future__ import annotations
from datetime import datetime
from typing import Callable
from optuna_dashboard._preferential_history import report_history
from optuna_dashboard.preferential._system_attrs import _SYSTEM_ATTR_PREFIX_PREFERENCE
from optuna_dashboard._serializer import serialize_preference_history
from optuna_dashboard.preferential import create_study
from optuna_dashboard.preferential._system_attrs import _SYSTEM_ATTR_PREFIX_PREFERENCE
from .storage_supplier import parametrize_storages
from .storage_supplier import StorageSupplier