mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Make Generator __iter__ method return itself
This commit is contained in:
@@ -107,6 +107,9 @@ class Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]):
|
||||
@abstractmethod
|
||||
def close(self) -> None:...
|
||||
|
||||
@abstractmethod
|
||||
def __iter__(self) -> 'Generator[_T_co, _T_contra, _V_co]': ...
|
||||
|
||||
class AbstractFuture(Generic[_T]): ...
|
||||
|
||||
class Awaitable(Generic[_T_co]):
|
||||
|
||||
Reference in New Issue
Block a user