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

Method _useAttributes

github/Referrer.py:87–93  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

85 return self._uniques.value
86
87 def _useAttributes(self, attributes: dict[str, Any]) -> None:
88 if "count" in attributes: # pragma no branch
89 self._count = self._makeIntAttribute(attributes["count"])
90 if "referrer" in attributes: # pragma no branch
91 self._referrer = self._makeStringAttribute(attributes["referrer"])
92 if "uniques" in attributes: # pragma no branch
93 self._uniques = self._makeIntAttribute(attributes["uniques"])

Callers

nothing calls this directly

Calls 2

_makeIntAttributeMethod · 0.80
_makeStringAttributeMethod · 0.80

Tested by

no test coverage detected