Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/a2a/client/transports/jsonrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ async def get_card(

self.agent_card = card
self._needs_extended_card = False
return card
return self.agent_card
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

This change improves consistency by returning the instance attribute. It's worth noting that the local card variable was updated on line 421, so the previous code returning card was also functionally correct. This change, however, is clearer about returning the instance's new state, which is good practice.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ed@ it

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ed@ it


async def close(self) -> None:
"""Closes the httpx client."""
Expand Down
Loading