Add type: ignore comment

This commit is contained in:
gen740
2022-12-01 12:36:34 +09:00
parent 188b88f26b
commit abefb6d030
+2 -3
View File
@@ -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"}