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

Method _useAttributes

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

Source from the content-addressed store, hash-verified

92 return self._used.value
93
94 def _useAttributes(self, attributes: dict[str, Any]) -> None:
95 if "limit" in attributes: # pragma no branch
96 self._limit = self._makeIntAttribute(attributes["limit"])
97 if "remaining" in attributes: # pragma no branch
98 self._remaining = self._makeIntAttribute(attributes["remaining"])
99 if "reset" in attributes: # pragma no branch
100 self._reset = self._makeTimestampAttribute(attributes["reset"])
101 if "used" in attributes: # pragma no branch
102 self._used = self._makeIntAttribute(attributes["used"])

Callers

nothing calls this directly

Calls 2

_makeIntAttributeMethod · 0.80

Tested by

no test coverage detected