Skip to content

Commit 9d673a7

Browse files
mypy
1 parent d38c05c commit 9d673a7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sentry_sdk/integrations/mcp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
if TYPE_CHECKING:
36-
from typing import Any, Callable, Optional, Tuple
36+
from typing import Any, Callable, Optional, Tuple, ContextManager
3737

3838
from starlette.types import Receive, Scope, Send # type: ignore[import-not-found]
3939

@@ -417,12 +417,12 @@ async def _handler_wrapper(
417417
else:
418418
isolation_scope, current_scope = scopes
419419

420-
isolation_scope_context = (
420+
isolation_scope_context: "ContextManager[Any]" = (
421421
nullcontext()
422422
if isolation_scope is None
423423
else sentry_sdk.scope.use_isolation_scope(isolation_scope)
424424
)
425-
current_scope_context = (
425+
current_scope_context: "ContextManager[Any]" = (
426426
nullcontext()
427427
if current_scope is None
428428
else sentry_sdk.scope.use_scope(current_scope)

0 commit comments

Comments
 (0)