Skip to content

Commit 06715d2

Browse files
fix bare coroutine (#3135)
1 parent 8016b1d commit 06715d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/huggingface_hub/inference/_mcp/_cli_hacks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ def on_input():
7373

7474
# Wait for user input or exit event
7575
# Wait until either the user hits enter or exit_event is set
76+
exit_task = asyncio.create_task(exit_event.wait())
7677
await asyncio.wait(
77-
[future, exit_event.wait()],
78+
[future, exit_task],
7879
return_when=asyncio.FIRST_COMPLETED,
7980
)
8081

0 commit comments

Comments
 (0)