MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / __init__

Method __init__

src/anthropic/_decoders/jsonl.py:25–35  ·  view source on GitHub ↗
(
        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]:

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected