File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,24 @@ class AsyncIterator(AsyncIterable[_T_co],
151
151
def __anext__ (self ) -> Awaitable [_T_co ]: ...
152
152
def __aiter__ (self ) -> 'AsyncIterator[_T_co]' : ...
153
153
154
+ if sys .version_info >= (3 , 6 ):
155
+ class AsyncGenerator (AsyncIterator [_T_co ], Generic [_T_co , _T_contra ]):
156
+ @abstractmethod
157
+ def __anext__ (self ) -> Awaitable [_T_co ]: ...
158
+
159
+ @abstractmethod
160
+ def asend (self , value : _T_contra ) -> Awaitable [_T_co ]: ...
161
+
162
+ @abstractmethod
163
+ def athrow (self , typ : Type [BaseException ], val : Optional [BaseException ] = None ,
164
+ tb : Any = None ) -> Awaitable [None ]: ...
165
+
166
+ @abstractmethod
167
+ def aclose (self ) -> Awaitable [None ]: ...
168
+
169
+ @abstractmethod
170
+ def __aiter__ (self ) -> 'AsyncGenerator[_T_co, _T_contra]' : ...
171
+
154
172
class Container (Generic [_T_co ]):
155
173
@abstractmethod
156
174
def __contains__ (self , x : object ) -> bool : ...
You can’t perform that action at this time.
0 commit comments