(self)
| 138 | return self |
| 139 | |
| 140 | async def __anext__(self) -> str: |
| 141 | if self._called == 5: |
| 142 | raise StopAsyncIteration() |
| 143 | self._called += 1 |
| 144 | return str(self._called) |
| 145 | |
| 146 | response = StreamingResponse(CustomAsyncIterator(), media_type="text/plain") |
| 147 | await response(scope, receive, send) |
no outgoing calls
no test coverage detected