Skip to content

Commit 69c6cad

Browse files
committed
fix old-style types
1 parent 8d04ba7 commit 69c6cad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry_sdk/integrations/mcp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,7 @@ 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, *args, **kwargs):
627-
# type: (Any, Any) -> Any
626+
async def patched_get_prompt_mcp(self: Any, *args: Any, **kwargs: Any) -> Any:
628627
return await _async_handler_wrapper(
629628
"prompt",
630629
original_get_prompt_mcp,
@@ -638,8 +637,9 @@ async def patched_get_prompt_mcp(self, *args, **kwargs):
638637
original_read_resource_mcp = FastMCP._read_resource_mcp
639638

640639
@wraps(original_read_resource_mcp)
641-
async def patched_read_resource_mcp(self, *args, **kwargs):
642-
# type: (Any, Any) -> Any
640+
async def patched_read_resource_mcp(
641+
self: Any, *args: Any, **kwargs: Any
642+
) -> Any:
643643
return await _async_handler_wrapper(
644644
"resource",
645645
original_read_resource_mcp,

0 commit comments

Comments
 (0)