Skip to content

Commit 0dcc393

Browse files
committed
mypy
1 parent 7c161d6 commit 0dcc393

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sentry_sdk/integrations/mcp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,9 @@ def _patch_fastmcp():
632632
original_get_prompt_mcp = FastMCP._get_prompt_mcp
633633

634634
@wraps(original_get_prompt_mcp)
635-
async def patched_get_prompt_mcp(self, *args: "Any", **kwargs: "Any") -> "Any":
635+
async def patched_get_prompt_mcp(
636+
self: "Any", *args: "Any", **kwargs: "Any"
637+
) -> "Any":
636638
return await _async_handler_wrapper(
637639
"prompt",
638640
original_get_prompt_mcp,
@@ -648,7 +650,7 @@ async def patched_get_prompt_mcp(self, *args: "Any", **kwargs: "Any") -> "Any":
648650

649651
@wraps(original_read_resource_mcp)
650652
async def patched_read_resource_mcp(
651-
self, *args: "Any", **kwargs: "Any"
653+
self: "Any", *args: "Any", **kwargs: "Any"
652654
) -> "Any":
653655
return await _async_handler_wrapper(
654656
"resource",

0 commit comments

Comments
 (0)