Method
__init__
(
self,
*,
raw_iterator: Iterator[bytes],
line_type: type[_T],
http_response: httpx2.Response,
)
Source from the content-addressed store, hash-verified
| 23 | """The HTTP response this decoder was constructed from""" |
| 24 | |
| 25 | def __init__( |
| 26 | self, |
| 27 | *, |
| 28 | raw_iterator: Iterator[bytes], |
| 29 | line_type: type[_T], |
| 30 | http_response: httpx2.Response, |
| 31 | ) -> None: |
| 32 | super().__init__() |
| 33 | self.http_response = http_response |
| 34 | self._raw_iterator = raw_iterator |
| 35 | self._line_type = line_type |
| 36 | |
| 37 | @cached_property |
| 38 | def _iterator(self) -> Iterator[_T]: |
Tested by
no test coverage detected