From a50cf92d3a2aa9b6835826255d01d4e9aeb3cde1 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Thu, 20 Feb 2025 11:04:46 +0000 Subject: [PATCH] fix: ruff format --- src/mcp/client/session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mcp/client/session.py b/src/mcp/client/session.py index 37036e2b..c1cc5b5f 100644 --- a/src/mcp/client/session.py +++ b/src/mcp/client/session.py @@ -21,7 +21,7 @@ class SamplingFnT(Protocol): class ListRootsFnT(Protocol): async def __call__( self, context: RequestContext["ClientSession", Any] - ) -> types.ListRootsResult | types.ErrorData: ... + ) -> types.ListRootsResult | types.ErrorData: ... async def _default_sampling_callback( @@ -36,7 +36,7 @@ async def _default_sampling_callback( async def _default_list_roots_callback( context: RequestContext["ClientSession", Any], -) -> types.ListRootsResult | types.ErrorData: +) -> types.ListRootsResult | types.ErrorData: return types.ErrorData( code=types.INVALID_REQUEST, message="List roots not supported", @@ -317,7 +317,7 @@ class ClientSession( response = await self._list_roots_callback(ctx) client_response = ClientResponse.validate_python(response) await responder.respond(client_response) - + case types.PingRequest(): with responder: return await responder.respond(