Skip to content

Commit 7a758e3

Browse files
committed
Fix typing
1 parent e9426eb commit 7a758e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/a2a/server/events/event_consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
# This is an alias to the exception for closed queue
20-
QueueClosed = asyncio.QueueEmpty
20+
QueueClosed: type[Exception] = asyncio.QueueEmpty
2121

2222
# When using python 3.13 or higher, the closed queue signal is QueueShutdown
2323
if sys.version_info >= (3, 13):

src/a2a/server/events/event_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async def close(self) -> None:
143143
if sys.version_info >= (3, 13):
144144
self.queue.shutdown()
145145
for child in self._children:
146-
child.close()
146+
await child.close()
147147
# Otherwise, join the queue
148148
else:
149149
tasks = [asyncio.create_task(self.queue.join())]

0 commit comments

Comments
 (0)