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

Method _useAttributes

github/NamedUser.py:803–813  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

801 return status == 204
802
803 def _useAttributes(self, attributes: dict[str, Any]) -> None:
804 super()._useAttributes(attributes)
805 if "failed_at" in attributes: # pragma no branch
806 self._failed_at = self._makeStringAttribute(attributes["failed_at"])
807 if "failed_reason" in attributes: # pragma no branch
808 self._failed_reason = self._makeStringAttribute(attributes["failed_reason"])
809 if "invitation_source" in attributes: # pragma no branch
810 self._invitation_source = self._makeStringAttribute(attributes["invitation_source"])
811 if "invitation_teams_url" in attributes and is_undefined(self._url): # pragma no branch
812 url = "/".join(attributes["invitation_teams_url"].split("/")[:-1])
813 self._url = self._makeStringAttribute(url)

Callers

nothing calls this directly

Calls 3

is_undefinedFunction · 0.90
_makeStringAttributeMethod · 0.80
_useAttributesMethod · 0.45

Tested by

no test coverage detected