Skip to content

Commit 3f89a99

Browse files
committed
fix: use _T instead of redundant _T_sai TypeVar
1 parent 50afa7a commit 3f89a99

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

stdlib/asyncio/tasks.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ else:
6868

6969
_T = TypeVar("_T")
7070
_T_co = TypeVar("_T_co", covariant=True)
71-
_T_sai = TypeVar("_T_sai") # invariant, for _SyncAndAsyncIterator Protocol
7271
_T1 = TypeVar("_T1")
7372
_T2 = TypeVar("_T2")
7473
_T3 = TypeVar("_T3")
@@ -89,7 +88,7 @@ ALL_COMPLETED: Final = concurrent.futures.ALL_COMPLETED
8988

9089
if sys.version_info >= (3, 13):
9190
@type_check_only
92-
class _SyncAndAsyncIterator(Iterator[Coroutine[Any, Any, _T_sai]], AsyncIterator[Future[_T_sai]], Protocol[_T_sai]): ...
91+
class _SyncAndAsyncIterator(Iterator[Coroutine[Any, Any, _T]], AsyncIterator[Future[_T]], Protocol[_T]): ...
9392

9493
def as_completed(fs: Iterable[_FutureLike[_T]], *, timeout: float | None = None) -> _SyncAndAsyncIterator[_T]: ...
9594

0 commit comments

Comments
 (0)