File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4692,7 +4692,7 @@ async def wait(
46924692 * ,
46934693 timeout : Optional [float ] = None ,
46944694 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 ]]]: ...
46964696
46974697
46984698async def wait (
@@ -4711,9 +4711,9 @@ async def wait(
47114711 # but the "set" is changed out for a "list" and fixed up some typing/format
47124712
47134713 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__ } " )
47154715 if not fs :
4716- raise ValueError ("Set of Tasks/Futures is empty." )
4716+ raise ValueError ("Sequence of Tasks/Futures must not be empty." )
47174717 if return_when not in (
47184718 asyncio .FIRST_COMPLETED ,
47194719 asyncio .FIRST_EXCEPTION ,
@@ -4740,7 +4740,7 @@ async def _wait(
47404740 # https://github.com/python/cpython/blob/v3.12.3/Lib/asyncio/tasks.py#L522
47414741 # but the "set" is changed out for a "list" and fixed up some typing/format
47424742
4743- assert fs , "Set of Futures is empty."
4743+ assert fs , "Sequence of Tasks/ Futures must not be empty."
47444744 waiter = loop .create_future ()
47454745 timeout_handle = None
47464746 if timeout is not None :
You can’t perform that action at this time.
0 commit comments