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

Method sync_fn

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

Source from the content-addressed store, hash-verified

1344
1345 def test_construction_accepts_sync_middleware(self) -> None:
1346 def sync_fn(request: APIRequest, call_next: CallNext) -> Any:
1347 return call_next(request)
1348
1349 client = make_sync_client(middleware=[SyncOnlyMiddleware(), RecordingMiddleware(), sync_fn])
1350 assert len(client._middleware) == 3

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected