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

Method __init__

tests/test_client.py:63–68  ·  view source on GitHub ↗
(
        self,
        handler: Callable[[httpx.Request], httpx.Response]
        | Callable[[httpx.Request], Coroutine[Any, Any, httpx.Response]],
    )

Source from the content-addressed store, hash-verified

61# body itself, which means we can't test that the body is read lazily
62class MockTransport(httpx.BaseTransport, httpx.AsyncBaseTransport):
63 def __init__(
64 self,
65 handler: Callable[[httpx.Request], httpx.Response]
66 | Callable[[httpx.Request], Coroutine[Any, Any, httpx.Response]],
67 ) -> None:
68 self.handler = handler
69
70 @override
71 def handle_request(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected