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

Method _useAttributes

github/CheckRunAnnotation.py:113–133  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

111 return self._title.value
112
113 def _useAttributes(self, attributes: dict[str, Any]) -> None:
114 if "annotation_level" in attributes: # pragma no branch
115 self._annotation_level = self._makeStringAttribute(attributes["annotation_level"])
116 if "blob_href" in attributes: # pragma no branch
117 self._blob_href = self._makeStringAttribute(attributes["blob_href"])
118 if "end_column" in attributes: # pragma no branch
119 self._end_column = self._makeIntAttribute(attributes["end_column"])
120 if "end_line" in attributes: # pragma no branch
121 self._end_line = self._makeIntAttribute(attributes["end_line"])
122 if "message" in attributes: # pragma no branch
123 self._message = self._makeStringAttribute(attributes["message"])
124 if "path" in attributes: # pragma no branch
125 self._path = self._makeStringAttribute(attributes["path"])
126 if "raw_details" in attributes: # pragma no branch
127 self._raw_details = self._makeStringAttribute(attributes["raw_details"])
128 if "start_column" in attributes: # pragma no branch
129 self._start_column = self._makeIntAttribute(attributes["start_column"])
130 if "start_line" in attributes: # pragma no branch
131 self._start_line = self._makeIntAttribute(attributes["start_line"])
132 if "title" in attributes: # pragma no branch
133 self._title = self._makeStringAttribute(attributes["title"])

Callers

nothing calls this directly

Calls 2

_makeStringAttributeMethod · 0.80
_makeIntAttributeMethod · 0.80

Tested by

no test coverage detected