asyncio.gather: Remove default values for return_exceptions: bool overloads (#8123)

This commit is contained in:
Alex Waygood
2022-06-21 13:57:06 +01:00
committed by GitHub
parent 305f10b808
commit cad42c7c7b

View File

@@ -131,10 +131,10 @@ if sys.version_info >= (3, 10):
return_exceptions: bool = ...,
) -> Future[list[Any]]: ...
@overload
def gather(__coro_or_future1: _FutureT[_T1], *, return_exceptions: bool = ...) -> Future[tuple[_T1 | BaseException]]: ...
def gather(__coro_or_future1: _FutureT[_T1], *, return_exceptions: bool) -> Future[tuple[_T1 | BaseException]]: ...
@overload
def gather(
__coro_or_future1: _FutureT[_T1], __coro_or_future2: _FutureT[_T2], *, return_exceptions: bool = ...
__coro_or_future1: _FutureT[_T1], __coro_or_future2: _FutureT[_T2], *, return_exceptions: bool
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException]]: ...
@overload
def gather(
@@ -142,7 +142,7 @@ if sys.version_info >= (3, 10):
__coro_or_future2: _FutureT[_T2],
__coro_or_future3: _FutureT[_T3],
*,
return_exceptions: bool = ...,
return_exceptions: bool,
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException]]: ...
@overload
def gather(
@@ -151,7 +151,7 @@ if sys.version_info >= (3, 10):
__coro_or_future3: _FutureT[_T3],
__coro_or_future4: _FutureT[_T4],
*,
return_exceptions: bool = ...,
return_exceptions: bool,
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException, _T4 | BaseException]]: ...
@overload
def gather(
@@ -161,7 +161,7 @@ if sys.version_info >= (3, 10):
__coro_or_future4: _FutureT[_T4],
__coro_or_future5: _FutureT[_T5],
*,
return_exceptions: bool = ...,
return_exceptions: bool,
) -> Future[
tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException, _T4 | BaseException, _T5 | BaseException]
]: ...
@@ -223,7 +223,7 @@ else:
) -> Future[list[Any]]: ...
@overload
def gather(
__coro_or_future1: _FutureT[_T1], *, loop: AbstractEventLoop | None = ..., return_exceptions: bool = ...
__coro_or_future1: _FutureT[_T1], *, loop: AbstractEventLoop | None = ..., return_exceptions: bool
) -> Future[tuple[_T1 | BaseException]]: ...
@overload
def gather(
@@ -231,7 +231,7 @@ else:
__coro_or_future2: _FutureT[_T2],
*,
loop: AbstractEventLoop | None = ...,
return_exceptions: bool = ...,
return_exceptions: bool,
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException]]: ...
@overload
def gather(
@@ -240,7 +240,7 @@ else:
__coro_or_future3: _FutureT[_T3],
*,
loop: AbstractEventLoop | None = ...,
return_exceptions: bool = ...,
return_exceptions: bool,
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException]]: ...
@overload
def gather(
@@ -250,7 +250,7 @@ else:
__coro_or_future4: _FutureT[_T4],
*,
loop: AbstractEventLoop | None = ...,
return_exceptions: bool = ...,
return_exceptions: bool,
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException, _T4 | BaseException]]: ...
@overload
def gather(
@@ -261,7 +261,7 @@ else:
__coro_or_future5: _FutureT[_T5],
*,
loop: AbstractEventLoop | None = ...,
return_exceptions: bool = ...,
return_exceptions: bool,
) -> Future[
tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException, _T4 | BaseException, _T5 | BaseException]
]: ...