(request: APIRequest, call_next: CallNext)
| 1872 | |
| 1873 | def test_construction_rejects_sync_function(self) -> None: |
| 1874 | def sync_fn(request: APIRequest, call_next: CallNext) -> Any: |
| 1875 | return call_next(request) |
| 1876 | |
| 1877 | with pytest.raises(TypeError, match="is not an async function"): |
| 1878 | make_async_client(middleware=[sync_fn]) |
nothing calls this directly
no outgoing calls
no test coverage detected