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

Method __init__

tests/utils.py:225–227  ·  view source on GitHub ↗
(self, error: Exception)

Source from the content-addressed store, hash-verified

223 """A response body that fails with `error` after its first chunk."""
224
225 def __init__(self, error: Exception) -> None:
226 super().__init__()
227 self.error = error
228
229 @override
230 def __iter__(self) -> Iterator[bytes]:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected