Skip to content

Commit bd0681d

Browse files
committed
chore: remove em-dashes from comments
Signed-off-by: SAY-5 <say.apm35@gmail.com>
1 parent 46926cd commit bd0681d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/mcp/server/mcpserver/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ async def _handle_call_tool(
323323
structured_content=structured_content, # type: ignore[arg-type]
324324
)
325325
if isinstance(result, dict): # pragma: no cover
326-
# TODO: this code path is unreachable convert_result never returns a raw dict.
326+
# TODO: this code path is unreachable, convert_result never returns a raw dict.
327327
# The call_tool return type (Sequence[ContentBlock] | dict[str, Any]) is wrong
328328
# and needs to be cleaned up.
329329
return CallToolResult(
@@ -617,7 +617,7 @@ async def handler(
617617
completion=result if result is not None else Completion(values=[], total=None, has_more=None),
618618
)
619619

620-
# TODO(maxisbey): remove private access completion needs post-construction
620+
# TODO(maxisbey): remove private access, completion needs post-construction
621621
# handler registration, find a better pattern for this
622622
self._lowlevel_server._add_request_handler( # pyright: ignore[reportPrivateUsage]
623623
"completion/complete", handler

tests/server/mcpserver/test_func_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ def func_with_aliases() -> ModelWithAliases: # pragma: no cover
10381038

10391039
# Check that the actual output uses aliases too. ``convert_result``
10401040
# returns either a sequence, a CallToolResult, or a 2-tuple of
1041-
# (unstructured, structured) for a model with an output schema the
1041+
# (unstructured, structured), for a model with an output schema the
10421042
# 2-tuple branch fires, so cast accordingly to keep pyright happy
10431043
# without runtime narrowing surprises.
10441044
from typing import cast

0 commit comments

Comments
 (0)