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

Method _useAttributes

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

Source from the content-addressed store, hash-verified

123 return self._weeks.value
124
125 def _useAttributes(self, attributes: dict[str, Any]) -> None:
126 if "author" in attributes: # pragma no branch
127 self._author = self._makeUnionClassAttributeFromTypeKey(
128 "type",
129 "User",
130 attributes["author"],
131 (github.NamedUser.NamedUser, "User"),
132 (github.Organization.Organization, "Organization"),
133 )
134 if "total" in attributes: # pragma no branch
135 self._total = self._makeIntAttribute(attributes["total"])
136 if "weeks" in attributes: # pragma no branch
137 self._weeks = self._makeListOfClassesAttribute(self.Week, attributes["weeks"])

Callers

nothing calls this directly

Tested by

no test coverage detected