(
self,
*,
cast_to: type[_T],
response: httpx.Response,
client: Opencode,
)
| 26 | _decoder: SSEBytesDecoder |
| 27 | |
| 28 | def __init__( |
| 29 | self, |
| 30 | *, |
| 31 | cast_to: type[_T], |
| 32 | response: httpx.Response, |
| 33 | client: Opencode, |
| 34 | ) -> None: |
| 35 | self.response = response |
| 36 | self._cast_to = cast_to |
| 37 | self._client = client |
| 38 | self._decoder = client._make_sse_decoder() |
| 39 | self._iterator = self.__stream__() |
| 40 | |
| 41 | def __next__(self) -> _T: |
| 42 | return self._iterator.__next__() |
nothing calls this directly
no test coverage detected