Skip to content

Commit 7cef6cb

Browse files
Updated mypy failures
1 parent 10e3633 commit 7cef6cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/a2a/server/apps/rest/rest_adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def handle_get_agent_card(self, request: Request) -> JSONResponse:
9494
A JSONResponse containing the agent card data.
9595
"""
9696
if self.agent_card.supports_authenticated_extended_card:
97-
return await self.handle_authenticated_agent_card(request)
97+
return await self.handle_authenticated_agent_card(request) # type: ignore[return-value]
9898

9999
# The public agent card is a direct serialization of the agent_card
100100
# provided at initialization.
@@ -124,7 +124,7 @@ async def handle_authenticated_agent_card(
124124
)
125125
)
126126
return JSONResponse(
127-
content=self.agent_card.model_dump(mode='json', exclude_none=True)
127+
self.agent_card.model_dump(mode='json', exclude_none=True)
128128
)
129129

130130
def routes(self) -> dict[tuple[str, str], Callable[[Request], Any]]:

0 commit comments

Comments
 (0)