Skip to content

Commit 6e2f45a

Browse files
Atishay Tiwariclaude
authored andcommitted
style: apply ruff format fixes flagged by pre-commit CI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5614482 commit 6e2f45a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/mcp/client/session.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,7 @@ async def _validate_tool_result(self, name: str, result: types.CallToolResult) -
328328
# beyond the first page are also considered before giving up.
329329
list_result = await self.list_tools()
330330
while list_result.next_cursor is not None and name not in self._tool_output_schemas:
331-
list_result = await self.list_tools(
332-
params=types.PaginatedRequestParams(cursor=list_result.next_cursor)
333-
)
331+
list_result = await self.list_tools(params=types.PaginatedRequestParams(cursor=list_result.next_cursor))
334332

335333
output_schema = None
336334
if name in self._tool_output_schemas:

tests/client/test_output_schema_validation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ async def test_validate_tool_result_paginates_all_pages():
246246
"required": ["result"],
247247
}
248248

249-
page1_tools = [
250-
Tool(name=f"tool_{i}", description="d", input_schema={"type": "object"}) for i in range(3)
251-
]
249+
page1_tools = [Tool(name=f"tool_{i}", description="d", input_schema={"type": "object"}) for i in range(3)]
252250
page2_tools = [
253251
Tool(
254252
name="paginated_tool",

0 commit comments

Comments
 (0)