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

Method _useAttributes

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

Source from the content-addressed store, hash-verified

91 return self._uniques.value
92
93 def _useAttributes(self, attributes: dict[str, Any]) -> None:
94 if "count" in attributes: # pragma no branch
95 self._count = self._makeIntAttribute(attributes["count"])
96 if "path" in attributes: # pragma no branch
97 self._path = self._makeStringAttribute(attributes["path"])
98 if "title" in attributes: # pragma no branch
99 self._title = self._makeStringAttribute(attributes["title"])
100 if "uniques" in attributes: # pragma no branch
101 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