mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Remove redundant inheritances from Iterator (#12814)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user