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 @@ -4692,7 +4692,7 @@ async def wait(
4692
4692
* ,
4693
4693
timeout : Optional [float ] = None ,
4694
4694
return_when : str = asyncio .ALL_COMPLETED ,
4695
- ) -> Tuple [List [asyncio .Task [AnyType ]], set [asyncio .Task [AnyType ]]]: ...
4695
+ ) -> Tuple [List [asyncio .Task [AnyType ]], List [asyncio .Task [AnyType ]]]: ...
4696
4696
4697
4697
4698
4698
async def wait (
@@ -4711,9 +4711,9 @@ async def wait(
4711
4711
# but the "set" is changed out for a "list" and fixed up some typing/format
4712
4712
4713
4713
if asyncio .isfuture (fs ) or asyncio .iscoroutine (fs ):
4714
- raise TypeError (f"expect a list of futures , not { type (fs ).__name__ } " )
4714
+ raise TypeError (f"Expect an iterable of Tasks/Futures , not { type (fs ).__name__ } " )
4715
4715
if not fs :
4716
- raise ValueError ("Set of Tasks/Futures is empty." )
4716
+ raise ValueError ("Sequence of Tasks/Futures must not be empty." )
4717
4717
if return_when not in (
4718
4718
asyncio .FIRST_COMPLETED ,
4719
4719
asyncio .FIRST_EXCEPTION ,
@@ -4740,7 +4740,7 @@ async def _wait(
4740
4740
# https://github.com/python/cpython/blob/v3.12.3/Lib/asyncio/tasks.py#L522
4741
4741
# but the "set" is changed out for a "list" and fixed up some typing/format
4742
4742
4743
- assert fs , "Set of Futures is empty."
4743
+ assert fs , "Sequence of Tasks/ Futures must not be empty."
4744
4744
waiter = loop .create_future ()
4745
4745
timeout_handle = None
4746
4746
if timeout is not None :
You can’t perform that action at this time.
0 commit comments