File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4486,7 +4486,7 @@ async def wait(
4486
4486
* ,
4487
4487
timeout : Optional [float ] = None ,
4488
4488
return_when : str = asyncio .ALL_COMPLETED ,
4489
- ) -> Tuple [List [asyncio .Task [AnyType ]], set [asyncio .Task [AnyType ]]]: ...
4489
+ ) -> Tuple [List [asyncio .Task [AnyType ]], List [asyncio .Task [AnyType ]]]: ...
4490
4490
4491
4491
4492
4492
async def wait (
@@ -4505,9 +4505,9 @@ async def wait(
4505
4505
# but the "set" is changed out for a "list" and fixed up some typing/format
4506
4506
4507
4507
if asyncio .isfuture (fs ) or asyncio .iscoroutine (fs ):
4508
- raise TypeError (f"expect a list of futures , not { type (fs ).__name__ } " )
4508
+ raise TypeError (f"Expect an iterable of Tasks/Futures , not { type (fs ).__name__ } " )
4509
4509
if not fs :
4510
- raise ValueError ("Set of Tasks/Futures is empty." )
4510
+ raise ValueError ("Sequence of Tasks/Futures must not be empty." )
4511
4511
if return_when not in (
4512
4512
asyncio .FIRST_COMPLETED ,
4513
4513
asyncio .FIRST_EXCEPTION ,
@@ -4534,7 +4534,7 @@ async def _wait(
4534
4534
# https://github.com/python/cpython/blob/v3.12.3/Lib/asyncio/tasks.py#L522
4535
4535
# but the "set" is changed out for a "list" and fixed up some typing/format
4536
4536
4537
- assert fs , "Set of Futures is empty."
4537
+ assert fs , "Sequence of Tasks/ Futures must not be empty."
4538
4538
waiter = loop .create_future ()
4539
4539
timeout_handle = None
4540
4540
if timeout is not None :
You can’t perform that action at this time.
0 commit comments