(request: APIRequest, call_next: CallNext)
| 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]) |
nothing calls this directly
no outgoing calls
no test coverage detected