Skip to content

Commit 529a822

Browse files
author
Christian-Sidak
committed
style: apply ruff-format to long if condition in streamable_http_manager
1 parent c13cf85 commit 529a822

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/mcp/server/streamable_http_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ async def run_server(*, task_status: TaskStatus[None] = anyio.TASK_STATUS_IGNORE
280280
# Handle the HTTP request and return the response
281281
await http_transport.handle_request(scope, receive, send)
282282
finally:
283-
if http_transport.idle_scope is not None and self.session_idle_timeout is not None: # pragma: no branch
283+
if (
284+
http_transport.idle_scope is not None and self.session_idle_timeout is not None
285+
): # pragma: no branch
284286
http_transport.idle_scope.deadline = anyio.current_time() + self.session_idle_timeout
285287
else:
286288
# Unknown or expired session ID - return 404 per MCP spec

0 commit comments

Comments
 (0)