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

Method __enter__

pygit2/transaction.py:182–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

180 check_error(err)
181
182 def __enter__(self) -> ReferenceTransaction:
183 return self
184
185 def __exit__(self, exc_type, exc_val, exc_tb) -> None:
186 self._check_thread()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected