Skip to content

Commit a1abca0

Browse files
committed
minor change
1 parent 5434429 commit a1abca0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

optuna_mcp/server.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ class StudyResponse(BaseModel):
6565
study_name: str
6666
sampler_name: (
6767
typing.Literal["TPESampler", "NSGAIISampler", "RandomSampler", "GPSampler"] | None
68-
) = Field(default=None, description="The name of the sampler used in the study, if available.")
68+
) = Field(default=None, description="The name of the sampler used in the study.")
6969
directions: list[str] | None = Field(
70-
default=None, description="The optimization directions for each objective, if available."
70+
default=None, description="The optimization directions for each objective."
7171
)
7272

7373

@@ -77,13 +77,13 @@ class TrialResponse(BaseModel):
7777
default=None, description="The parameter values suggested by the trial."
7878
)
7979
values: list[float] | None = Field(
80-
default=None, description="The objective values of the trial, if available."
80+
default=None, description="The objective values of the trial."
8181
)
8282
user_attrs: dict[str, typing.Any] | None = Field(
83-
default=None, description="User-defined attributes for the trial, if any."
83+
default=None, description="User-defined attributes for the trial."
8484
)
8585
system_attrs: dict[str, typing.Any] | None = Field(
86-
default=None, description="System-defined attributes for the trial, if any."
86+
default=None, description="System-defined attributes for the trial."
8787
)
8888

8989

tests/test_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ async def test_get_trials(mcp: OptunaMCP) -> None:
251251
assert len(result) == 2
252252
assert isinstance(result[0][0], TextContent)
253253
assert isinstance(result[1], dict)
254-
# assert isinstance(result[0], TextContent)
255254
lines_from_text = result[0][0].text.strip().split("\n")
256255
lines_from_dict = result[1]["result"].strip().split("\n")
257256

0 commit comments

Comments
 (0)