Skip to content

Commit 6cf2102

Browse files
mypy
1 parent 9d673a7 commit 6cf2102

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

sentry_sdk/integrations/mcp.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,18 +411,21 @@ async def _handler_wrapper(
411411

412412
scopes = _get_active_http_scopes()
413413

414+
isolation_scope_context: "ContextManager[Any]"
415+
current_scope_context: "ContextManager[Any]"
416+
414417
if scopes is None:
415418
isolation_scope_context = nullcontext()
416419
current_scope_context = nullcontext()
417420
else:
418421
isolation_scope, current_scope = scopes
419422

420-
isolation_scope_context: "ContextManager[Any]" = (
423+
isolation_scope_context = (
421424
nullcontext()
422425
if isolation_scope is None
423426
else sentry_sdk.scope.use_isolation_scope(isolation_scope)
424427
)
425-
current_scope_context: "ContextManager[Any]" = (
428+
current_scope_context = (
426429
nullcontext()
427430
if current_scope is None
428431
else sentry_sdk.scope.use_scope(current_scope)

0 commit comments

Comments
 (0)