Skip to content

Commit 922ff10

Browse files
committed
fixing linter
1 parent 8e655d1 commit 922ff10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/a2a/server/apps/jsonrpc/jsonrpc_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
from abc import ABC, abstractmethod
77
from collections.abc import AsyncGenerator, Callable
8-
from typing import TYPE_CHECKING, Any
8+
from typing import TYPE_CHECKING, Any, Type
99

10-
from pydantic import ValidationError
10+
from pydantic import BaseModel, ValidationError
1111

1212
from a2a.auth.user import UnauthenticatedUser
1313
from a2a.auth.user import User as A2AUser
@@ -156,7 +156,7 @@ class JSONRPCApplication(ABC):
156156
"""
157157

158158
# Method-to-model mapping for centralized routing
159-
METHOD_TO_MODEL = {
159+
METHOD_TO_MODEL: dict[str, Type[BaseModel]] = {
160160
'message/send': SendMessageRequest,
161161
'message/stream': SendStreamingMessageRequest,
162162
'tasks/get': GetTaskRequest,

0 commit comments

Comments
 (0)