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

Method async_only

tests/test_middleware.py:1257–1258  ·  view source on GitHub ↗
(request: APIRequest, call_next: AsyncCallNext)

Source from the content-addressed store, hash-verified

1255 client = make_sync_client()
1256
1257 async def async_only(request: APIRequest, call_next: AsyncCallNext) -> Any:
1258 return await call_next(request)
1259
1260 with pytest.raises(TypeError):
1261 client.with_middleware(async_only)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected