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

Function test_isinstance_check

tests/test_streaming.py:351–356  ·  view source on GitHub ↗
(client: Anthropic, async_client: AsyncAnthropic)

Source from the content-addressed store, hash-verified

349 assert "Overloaded" in str(exc_info.value)
350
351
352def test_isinstance_check(client: Anthropic, async_client: AsyncAnthropic) -> None:
353 async_stream = AsyncStream(cast_to=object, client=async_client, response=httpx2.Response(200, content=b"foo"))
354 assert isinstance(async_stream, AsyncStream)
355
356 sync_stream = Stream(cast_to=object, client=client, response=httpx2.Response(200, content=b"foo"))
357 assert isinstance(sync_stream, Stream)
358
359

Callers

nothing calls this directly

Calls 2

AsyncStreamClass · 0.90
StreamClass · 0.90

Tested by

no test coverage detected