MCPcopy Create free account
hub / github.com/libgit2/pygit2 / read_cb

Method read_cb

test/test_odb_backend.py:75–76  ·  view source on GitHub ↗
(self, oid: Oid | str)

Source from the content-addressed store, hash-verified

73 self.source = source
74
75 def read_cb(self, oid: Oid | str) -> tuple[int, bytes]:
76 return self.source.read(oid)
77
78 def read_prefix_cb(self, oid: Oid | str) -> tuple[int, bytes, Oid]:
79 return self.source.read_prefix(oid)

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected