MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / read

Method read

tests/test_fastapi_v1_dashboard.py:1974–1975  ·  view source on GitHub ↗
(self, size: int)

Source from the content-addressed store, hash-verified

1972 self._text = text
1973
1974 async def read(self, size: int) -> bytes:
1975 return self._text.encode("utf-8")[:size]
1976
1977 class FakeResponse:
1978 def __init__(self, status: int, *, text: str = "", payload=None):

Callers 1

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected