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

Method __init__

pygit2/utils.py:211–214  ·  view source on GitHub ↗
(self, container: SequenceProtocol[T])

Source from the content-addressed store, hash-verified

209 """
210
211 def __init__(self, container: SequenceProtocol[T]) -> None:
212 self.container = container
213 self.length = len(container)
214 self.idx = 0
215
216 def __iter__(self) -> Iterator[T]:
217 return self

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected