Skip to content

Commit 6518c7b

Browse files
committed
adress mypy error
1 parent ac6b526 commit 6518c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optuna_mcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def get_directions() -> StudyResponse:
307307
directions = [d.name.lower() for d in mcp.study.directions]
308308
return StudyResponse(
309309
study_name=mcp.study.study_name,
310-
directions=directions,
310+
directions=typing.cast(list[typing.Literal["minimize", "maximize"]], directions),
311311
)
312312

313313
@mcp.tool(structured_output=False)

0 commit comments

Comments
 (0)