Skip to content

Commit 8d79aa0

Browse files
committed
style: apply ruff formatting to instrumentation files
1 parent a01b2ae commit 8d79aa0

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/mcp/server/lowlevel/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ async def _handle_request(
681681
request_type = type(req).__name__
682682
log_extra = {"request_id": str(message.request_id)}
683683
logger.info("Processing request of type %s", request_type, extra=log_extra)
684-
684+
685685
# Start instrumentation
686686
start_time = time.monotonic()
687687
try:
@@ -763,7 +763,7 @@ async def _handle_request(
763763
# Reset the global state after we are done
764764
if token is not None: # pragma: no branch
765765
request_ctx.reset(token)
766-
766+
767767
# End instrumentation
768768
try:
769769
session.instrumenter.on_request_end(

src/mcp/shared/instrumentation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,3 @@ def on_error(
122122
def get_default_instrumenter() -> Instrumenter:
123123
"""Get the default no-op instrumenter instance."""
124124
return _default_instrumenter
125-

tests/shared/test_instrumentation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,3 @@ def test_instrumenter_error_info():
164164
assert call["error"] is test_error
165165
assert call["error_type"] == "ValueError"
166166
assert call["metadata"]["extra_info"] == "additional context"
167-

0 commit comments

Comments
 (0)