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

Method sync_fn

tests/test_middleware.py:2155–2156  ·  view source on GitHub ↗
(request: APIRequest, call_next: CallNext)

Source from the content-addressed store, hash-verified

2153
2154 def test_lib_client_construction_validates_middleware(self) -> None:
2155 def sync_fn(request: APIRequest, call_next: CallNext) -> Any:
2156 return call_next(request)
2157
2158 with pytest.raises(TypeError, match="is not an async function"):
2159 make_async_bedrock_client(middleware=[sync_fn])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected