Skip to content

Commit 10954ca

Browse files
committed
Formatting/typing
1 parent b280743 commit 10954ca

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
@@ -156,7 +156,6 @@ class JSONRPCApplication(ABC):
156156
"""
157157

158158
# Method-to-model mapping for centralized routing
159-
# Define the union type for all supported request models
160159
A2ARequestModel = (
161160
SendMessageRequest
162161
| SendStreamingMessageRequest
@@ -170,8 +169,9 @@ class JSONRPCApplication(ABC):
170169
| GetAuthenticatedExtendedCardRequest
171170
)
172171

173-
METHOD_TO_MODEL = {
174-
model.model_fields["method"].default: model for model in A2ARequestModel.__args__
172+
METHOD_TO_MODEL: dict[str, type[A2ARequestModel]] = {
173+
model.model_fields['method'].default: model
174+
for model in A2ARequestModel.__args__
175175
}
176176

177177
def __init__( # noqa: PLR0913

0 commit comments

Comments
 (0)