MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / must_read

Function must_read

tokenizer/convert/convert.py:876–880  ·  view source on GitHub ↗
(fp: IO[bytes], length: int)

Source from the content-addressed store, hash-verified

874
875
876def must_read(fp: IO[bytes], length: int) -> bytes:
877 ret = fp.read(length)
878 if len(ret) < length:
879 raise Exception("unexpectedly reached end of file")
880 return ret
881
882
883@functools.lru_cache(maxsize=None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected