mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Backport many Self-related changes to the Python-2 stdlib (#7128)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Self
|
||||
from typing import Any, Callable, Iterable, Iterator
|
||||
|
||||
class AsyncResult:
|
||||
@@ -7,7 +8,7 @@ class AsyncResult:
|
||||
def successful(self) -> bool: ...
|
||||
|
||||
class IMapIterator(Iterator[Any]):
|
||||
def __iter__(self) -> Iterator[Any]: ...
|
||||
def __iter__(self: Self) -> Self: ...
|
||||
def next(self, timeout: float | None = ...) -> Any: ...
|
||||
|
||||
class IMapUnorderedIterator(IMapIterator): ...
|
||||
|
||||
Reference in New Issue
Block a user