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

Method __getitem__

pygit2/settings.py:41–42  ·  view source on GitHub ↗
(self, key: ConfigLevel)

Source from the content-addressed store, hash-verified

39
40class SearchPathList:
41 def __getitem__(self, key: ConfigLevel) -> str:
42 return option(Option.GET_SEARCH_PATH, key)
43
44 def __setitem__(self, key: ConfigLevel, value: str) -> None:
45 option(Option.SET_SEARCH_PATH, key, value)

Callers

nothing calls this directly

Calls 1

optionFunction · 0.90

Tested by

no test coverage detected