MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / _useAttributes

Method _useAttributes

github/StatsContributor.py:98–106  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

96 return self._w.value
97
98 def _useAttributes(self, attributes: dict[str, Any]) -> None:
99 if "a" in attributes: # pragma no branch
100 self._a = self._makeIntAttribute(attributes["a"])
101 if "c" in attributes: # pragma no branch
102 self._c = self._makeIntAttribute(attributes["c"])
103 if "d" in attributes: # pragma no branch
104 self._d = self._makeIntAttribute(attributes["d"])
105 if "w" in attributes: # pragma no branch
106 self._w = self._makeTimestampAttribute(attributes["w"])
107
108 def _initAttributes(self) -> None:
109 self._author: Attribute[NamedUser | Organization] = NotSet

Callers

nothing calls this directly

Calls 2

_makeIntAttributeMethod · 0.80

Tested by

no test coverage detected