MCPcopy
hub / github.com/PyGithub/PyGithub / _identity

Method _identity

github/InputGitTreeElement.py:68–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66
67 @property
68 def _identity(self) -> dict[str, Any]:
69 identity: dict[str, Any] = {
70 "path": self.__path,
71 "mode": self.__mode,
72 "type": self.__type,
73 }
74 if is_defined(self.__sha):
75 identity["sha"] = self.__sha
76 if is_defined(self.__content):
77 identity["content"] = self.__content
78 return identity

Callers

nothing calls this directly

Calls 1

is_definedFunction · 0.90

Tested by

no test coverage detected