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

Method _useAttributes

github/TeamDiscussion.py:118–135  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

116 return self._team_url.value
117
118 def _useAttributes(self, attributes: dict[str, Any]) -> None:
119 super()._useAttributes(attributes)
120 if "body_version" in attributes: # pragma no branch
121 self._body_version = self._makeStringAttribute(attributes["body_version"])
122 if "comments_count" in attributes: # pragma no branch
123 self._comments_count = self._makeIntAttribute(attributes["comments_count"])
124 if "comments_url" in attributes: # pragma no branch
125 self._comments_url = self._makeStringAttribute(attributes["comments_url"])
126 if "html_url" in attributes: # pragma no branch
127 self._html_url = self._makeStringAttribute(attributes["html_url"])
128 if "node_id" in attributes: # pragma no branch
129 self._node_id = self._makeStringAttribute(attributes["node_id"])
130 if "pinned" in attributes: # pragma no branch
131 self._pinned = self._makeBoolAttribute(attributes["pinned"])
132 if "private" in attributes: # pragma no branch
133 self._private = self._makeBoolAttribute(attributes["private"])
134 if "team_url" in attributes: # pragma no branch
135 self._team_url = self._makeStringAttribute(attributes["team_url"])

Callers

nothing calls this directly

Calls 3

_makeStringAttributeMethod · 0.80
_makeIntAttributeMethod · 0.80
_makeBoolAttributeMethod · 0.80

Tested by

no test coverage detected