(client: Anthropic, async_client: AsyncAnthropic)
| 239 | assert "Overloaded" in str(exc_info.value) |
| 240 | |
| 241 | |
| 242 | def test_isinstance_check(client: Anthropic, async_client: AsyncAnthropic) -> None: |
| 243 | async_stream = AsyncStream(cast_to=object, client=async_client, response=httpx2.Response(200, content=b"foo")) |
| 244 | assert isinstance(async_stream, AsyncStream) |
| 245 | |
| 246 | sync_stream = Stream(cast_to=object, client=client, response=httpx2.Response(200, content=b"foo")) |
| 247 | assert isinstance(sync_stream, Stream) |
| 248 | |
| 249 |
nothing calls this directly
no test coverage detected