Skip to content

Commit 1822003

Browse files
committed
.
1 parent 69c6cad commit 1822003

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sentry_sdk/integrations/mcp.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,9 @@ def _patch_fastmcp():
623623
original_get_prompt_mcp = FastMCP._get_prompt_mcp
624624

625625
@wraps(original_get_prompt_mcp)
626-
async def patched_get_prompt_mcp(self: Any, *args: Any, **kwargs: Any) -> Any:
626+
async def patched_get_prompt_mcp(
627+
self: "Any", *args: "Any", **kwargs: "Any"
628+
) -> "Any":
627629
return await _async_handler_wrapper(
628630
"prompt",
629631
original_get_prompt_mcp,
@@ -638,8 +640,8 @@ async def patched_get_prompt_mcp(self: Any, *args: Any, **kwargs: Any) -> Any:
638640

639641
@wraps(original_read_resource_mcp)
640642
async def patched_read_resource_mcp(
641-
self: Any, *args: Any, **kwargs: Any
642-
) -> Any:
643+
self: "Any", *args: "Any", **kwargs: "Any"
644+
) -> "Any":
643645
return await _async_handler_wrapper(
644646
"resource",
645647
original_read_resource_mcp,

0 commit comments

Comments
 (0)