File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,27 @@ class Hashable(metaclass=ABCMeta):
87
87
@abstractmethod
88
88
def __hash__ (self ) -> int : ...
89
89
90
+ class Awaitable (Generic [_T_co ]):
91
+ @abstractmethod
92
+ def __await__ (self ) -> Iterator [_T_co ]:...
93
+
94
+ class AsyncIterable (Generic [_T_co ]):
95
+ @abstractmethod
96
+ def __anext__ (self ) -> Awaitable [_T_co ]:...
97
+
98
+ class AsyncIterator (AsyncIterable [_T_co ], Generic [_T_co ]):
99
+ @abstractmethod
100
+ def __anext__ (self ) -> Awaitable [_T_co ]:...
101
+ def __aiter__ (self ) -> 'AsyncIterator' [_T_co ]:...
102
+
90
103
class Iterable (Generic [_T_co ]):
91
104
@abstractmethod
92
105
def __iter__ (self ) -> Iterator [_T_co ]: ...
93
106
94
107
class Iterator (Iterable [_T_co ], Generic [_T_co ]):
95
108
@abstractmethod
96
109
def __next__ (self ) -> _T_co : ...
97
- def __iter__ (self ) -> Iterator [_T_co ]: ...
110
+ def __iter__ (self ) -> ' Iterator' [_T_co ]: ...
98
111
99
112
class Container (Generic [_T_co ]):
100
113
@abstractmethod
You can’t perform that action at this time.
0 commit comments