MCPcopy
hub / github.com/PyGithub/PyGithub / _useAttributes

Method _useAttributes

github/GitCommitVerification.py:92–102  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

90 return self._verified_at.value
91
92 def _useAttributes(self, attributes: dict[str, Any]) -> None:
93 if "payload" in attributes: # pragma no branch
94 self._payload = self._makeStringAttribute(attributes["payload"])
95 if "reason" in attributes: # pragma no branch
96 self._reason = self._makeStringAttribute(attributes["reason"])
97 if "signature" in attributes: # pragma no branch
98 self._signature = self._makeStringAttribute(attributes["signature"])
99 if "verified" in attributes: # pragma no branch
100 self._verified = self._makeBoolAttribute(attributes["verified"])
101 if "verified_at" in attributes: # pragma no branch
102 self._verified_at = self._makeDatetimeAttribute(attributes["verified_at"])

Callers

nothing calls this directly

Calls 3

_makeStringAttributeMethod · 0.80
_makeBoolAttributeMethod · 0.80

Tested by

no test coverage detected