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

Method __delitem__

pygit2/config.py:163–167  ·  view source on GitHub ↗
(self, key: str | bytes)

Source from the content-addressed store, hash-verified

161 check_error(err)
162
163 def __delitem__(self, key: str | bytes) -> None:
164 key = str_to_bytes(key, 'key')
165
166 err = C.git_config_delete_entry(self._config, key)
167 check_error(err)
168
169 def __iter__(self) -> Iterator['ConfigEntry']:
170 """

Callers

nothing calls this directly

Calls 2

str_to_bytesFunction · 0.85
check_errorFunction · 0.85

Tested by

no test coverage detected