Skip to content

Commit c9bfadf

Browse files
committed
misc: small fix or general refactoring i did not bother commenting
1 parent a98adf0 commit c9bfadf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nerve/tools/mcp/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async def create_function_body(client: Client, mcp_tool: Tool) -> tuple[str, dic
100100
arg["default"] = repr(arg_props["default"])
101101

102102
typed_args.append(arg)
103-
103+
104104
typed_args.sort(key=lambda arg: 'default' in arg)
105105

106106
# load the template from the same directory as this script

nerve/tools/mcp/compiler_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async def calculate(operation: Annotated[str, "The operation to perform"], value
116116
'''.strip(),
117117
func_body,
118118
)
119-
119+
120120
async def test_create_function_body_with_string_default_colliding_with_builtin(self) -> None:
121121
client = MagicMock(spec=Client)
122122

0 commit comments

Comments
 (0)