1616 Tuple ,
1717 TypeVar ,
1818 Union ,
19- no_type_check ,
2019)
2120
2221from mode import Seconds , ServiceT
@@ -149,22 +148,35 @@ def info(self) -> Mapping[str, Any]: ...
149148 def clone (self , ** kwargs : Any ) -> "StreamT" : ...
150149
151150 @abc .abstractmethod
152- @no_type_check
153- async def items (self ) -> AsyncIterator [Tuple [K , T_co ]]: ...
151+ def noack (self ) -> "StreamT" : ...
154152
155153 @abc .abstractmethod
156- @no_type_check
157- async def events (self ) -> AsyncIterable [EventT ]: ...
154+ def items (self ) -> AsyncIterator [Tuple [K , T_co ]]: ...
158155
159156 @abc .abstractmethod
160- @no_type_check
161- async def take (
157+ def events (self ) -> AsyncIterable [EventT ]: ...
158+
159+ @abc .abstractmethod
160+ def take (self , max_ : int , within : Seconds ) -> AsyncIterable [Sequence [T_co ]]: ...
161+
162+ @abc .abstractmethod
163+ def take_events (
162164 self , max_ : int , within : Seconds
165+ ) -> AsyncIterable [Sequence [EventT [T_co ]]]: ...
166+
167+ @abc .abstractmethod
168+ def take_with_timestamp (
169+ self , max_ : int , within : Seconds , timestamp_field_name : str
163170 ) -> AsyncIterable [Sequence [T_co ]]: ...
164171
165172 @abc .abstractmethod
166173 def enumerate (self , start : int = 0 ) -> AsyncIterable [Tuple [int , T_co ]]: ...
167174
175+ @abc .abstractmethod
176+ def noack_take (
177+ self , max_ : int , within : Seconds
178+ ) -> AsyncIterable [Sequence [EventT [T_co ]]]: ...
179+
168180 @abc .abstractmethod
169181 def through (self , channel : Union [str , ChannelT ]) -> "StreamT" : ...
170182
@@ -180,6 +192,9 @@ def group_by(
180192 topic : Optional [TopicT ] = None ,
181193 ) -> "StreamT" : ...
182194
195+ @abc .abstractmethod
196+ def filter (self , fun : Processor [T ]) -> "StreamT" : ...
197+
183198 @abc .abstractmethod
184199 def derive_topic (
185200 self ,
@@ -198,9 +213,6 @@ async def throw(self, exc: BaseException) -> None: ...
198213 @abc .abstractmethod
199214 def __copy__ (self ) -> "StreamT" : ...
200215
201- @abc .abstractmethod
202- def __iter__ (self ) -> Any : ...
203-
204216 @abc .abstractmethod
205217 def __next__ (self ) -> T : ...
206218
0 commit comments