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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected