Skip to content

Commit a0afd1d

Browse files
committed
don't worry about it
1 parent cf9e43e commit a0afd1d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,10 @@ select = [
136136
"F", # pyflakes
137137
"I", # isort
138138
"PERF", # Perflint
139-
"PL", # Pylint
140139
"UP", # pyupgrade
141140
"TID251", # https://docs.astral.sh/ruff/rules/banned-api/
142141
]
143-
ignore = ["PERF203", "PLC0415", "PLR0402"]
142+
ignore = ["PERF203"]
144143

145144
[tool.ruff.lint.flake8-tidy-imports.banned-api]
146145
"pydantic.RootModel".msg = "Use `pydantic.TypeAdapter` instead."

src/mcp/server/streamable_http.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ async def _validate_accept_header(self, request: Request, scope: Scope, send: Se
427427
return False
428428
return True
429429

430-
async def _handle_post_request(self, scope: Scope, request: Request, receive: Receive, send: Send) -> None: # noqa: PLR0915
430+
async def _handle_post_request(self, scope: Scope, request: Request, receive: Receive, send: Send) -> None:
431431
"""Handle POST requests containing JSON-RPC messages."""
432432
writer = self._read_stream_writer
433433
if writer is None: # pragma: no cover
@@ -1006,10 +1006,7 @@ async def message_router():
10061006
try:
10071007
# Send both the message and the event ID
10081008
await self._request_streams[request_stream_id][0].send(EventMessage(message, event_id))
1009-
except (
1010-
anyio.BrokenResourceError,
1011-
anyio.ClosedResourceError,
1012-
): # pragma: no cover
1009+
except (anyio.BrokenResourceError, anyio.ClosedResourceError): # pragma: no cover
10131010
# Stream might be closed, remove from registry
10141011
self._request_streams.pop(request_stream_id, None)
10151012
else: # pragma: no cover

0 commit comments

Comments
 (0)