Skip to content

Commit 2a0d65d

Browse files
BabyChrist666claude
andcommitted
Fix pyright: use concrete dict type for model_validator parameter
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4f9bc5a commit 2a0d65d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/types/jsonrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class JSONRPCNotification(BaseModel):
3535

3636
@model_validator(mode="before")
3737
@classmethod
38-
def _reject_id_field(cls, data: Any) -> Any:
38+
def _reject_id_field(cls, data: dict[str, Any]) -> dict[str, Any]:
3939
"""Reject messages that contain an ``id`` field.
4040
4141
JSON-RPC notifications MUST NOT include an ``id`` member. If the

0 commit comments

Comments
 (0)