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

Method __len__

pygit2/blame.py:130–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128 C.git_blame_free(self._blame)
129
130 def __len__(self) -> int:
131 return C.git_blame_get_hunk_count(self._blame)
132
133 def __getitem__(self, index: int) -> BlameHunk:
134 chunk = C.git_blame_get_hunk_byindex(self._blame, index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected