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

Method read

tests/test_prepare.py:666–667  ·  view source on GitHub ↗
(self, size: int = -1)

Source from the content-addressed store, hash-verified

664 class OddReader(io.RawIOBase):
665 @override
666 def read(self, size: int = -1) -> Any: # noqa: ARG002
667 return 3
668
669 with pytest.raises(RuntimeError, match="Could not read bytes from .*; Received <class 'int'>"):
670 await send(b64_obj(OddReader()))

Calls

no outgoing calls

Tested by

no test coverage detected