(request: APIRequest, call_next: AsyncCallNext)
| 1277 | |
| 1278 | def test_construction_rejects_async_function(self) -> None: |
| 1279 | async def async_fn(request: APIRequest, call_next: AsyncCallNext) -> Any: |
| 1280 | return await call_next(request) |
| 1281 | |
| 1282 | with pytest.raises(TypeError, match="is an async function"): |
| 1283 | make_sync_client(middleware=[async_fn]) |
nothing calls this directly
no outgoing calls
no test coverage detected