From 2412c7cea6180faf24dfc46da1b73846b60485bd Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Wed, 16 Oct 2024 22:11:05 -0700 Subject: [PATCH] Remove unneeded Iterable base class from asyncio.Future (#12827) --- stdlib/_asyncio.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/_asyncio.pyi b/stdlib/_asyncio.pyi index 18920cd8a..a25902661 100644 --- a/stdlib/_asyncio.pyi +++ b/stdlib/_asyncio.pyi @@ -1,6 +1,6 @@ import sys from asyncio.events import AbstractEventLoop -from collections.abc import Awaitable, Callable, Coroutine, Generator, Iterable +from collections.abc import Awaitable, Callable, Coroutine, Generator from contextvars import Context from types import FrameType from typing import Any, Literal, TextIO, TypeVar @@ -13,7 +13,7 @@ _T = TypeVar("_T") _T_co = TypeVar("_T_co", covariant=True) _TaskYieldType: TypeAlias = Future[object] | None -class Future(Awaitable[_T], Iterable[_T]): +class Future(Awaitable[_T]): _state: str @property def _exception(self) -> BaseException | None: ...