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

Method replace_extensions

tests/test_client.py:1870–1871  ·  view source on GitHub ↗
(request: httpx2.Request)

Source from the content-addressed store, hash-verified

1868
1869 def test_timeout_error_message_when_a_request_hook_replaces_the_extensions(self, client: Anthropic) -> None:
1870 def replace_extensions(request: httpx2.Request) -> None:
1871 request.extensions = {}
1872
1873 with pytest.raises(APITimeoutError) as exc_info:
1874 client.with_options(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected