Skip to content

Commit addb1e2

Browse files
Apply suggestions from code review
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 8fbc1e1 commit addb1e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/a2a/client/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ def __init__(
211211
middleware = []
212212
if consumers is None:
213213
consumers = []
214-
self._consumers = consumers or []
215-
self._middleware = middleware or []
214+
self._consumers = consumers
215+
self._middleware = middleware
216216

217217
@abstractmethod
218218
async def send_message(
@@ -229,7 +229,6 @@ async def send_message(
229229
pairs, or a `Message`. Client will also send these values to any
230230
configured `Consumer`s in the client.
231231
"""
232-
yield
233232

234233
@abstractmethod
235234
async def get_task(
@@ -275,7 +274,6 @@ async def resubscribe(
275274
context: ClientCallContext | None = None,
276275
) -> AsyncIterator[Task | Message]:
277276
"""Resubscribes to a task's event stream."""
278-
yield
279277

280278
@abstractmethod
281279
async def get_card(

0 commit comments

Comments
 (0)