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

Method sync_fn

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected