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

Method __init__

test/test_odb_backend.py:71–73  ·  view source on GitHub ↗
(self, source: pygit2.OdbBackend | pygit2.OdbBackendPack)

Source from the content-addressed store, hash-verified

69
70class ProxyBackend(pygit2.OdbBackend):
71 def __init__(self, source: pygit2.OdbBackend | pygit2.OdbBackendPack) -> None:
72 super().__init__()
73 self.source = source
74
75 def read_cb(self, oid: Oid | str) -> tuple[int, bytes]:
76 return self.source.read(oid)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected