Skip to content

Commit 3f23d33

Browse files
committed
style(mcp): apply autoformat to fix lint errors
- Format mcp_session_manager.py (remove unnecessary f-string prefix) - Format test_mcp_session_manager.py (consolidate pytest.raises call)
1 parent 69eda40 commit 3f23d33

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/google/adk/tools/mcp_tool/mcp_session_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ async def create_session(
378378
'Error during cancelled session cleanup: %s', exit_stack_error
379379
)
380380
raise ConnectionError(
381-
f'MCP session creation cancelled (server may have returned HTTP'
381+
'MCP session creation cancelled (server may have returned HTTP'
382382
f' error): {e}'
383383
) from e
384384

tests/unittests/tools/mcp_tool/test_mcp_session_manager.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,7 @@ async def test_create_session_cancelled_error(
316316
)
317317

318318
# Expect ConnectionError due to CancelledError
319-
with pytest.raises(
320-
ConnectionError, match="MCP session creation cancelled"
321-
):
319+
with pytest.raises(ConnectionError, match="MCP session creation cancelled"):
322320
await manager.create_session()
323321

324322
# Verify session was not added to pool

0 commit comments

Comments
 (0)