Remove redundant inheritances from Iterator (#12814)

This commit is contained in:
Stephen Morton
2024-10-15 11:17:34 -07:00
committed by GitHub
parent f08d769f7c
commit 1fb6ebf62b
3 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import sys
from collections.abc import Callable, Iterable, Iterator, Mapping
from collections.abc import Callable, Iterable, Mapping
from types import TracebackType
from typing import Any, Final, Generic, TypeVar
from typing_extensions import Self
@@ -36,7 +36,7 @@ class MapResult(ApplyResult[list[_T]]):
error_callback: Callable[[BaseException], object] | None,
) -> None: ...
class IMapIterator(Iterator[_T]):
class IMapIterator(Generic[_T]):
def __init__(self, pool: Pool) -> None: ...
def __iter__(self) -> Self: ...
def next(self, timeout: float | None = None) -> _T: ...