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

Method _useAttributes

github/Topic.py:144–176  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

142 return self._updated_at.value
143
144 def _useAttributes(self, attributes: dict[str, Any]) -> None:
145 if "aliases" in attributes: # pragma no branch
146 self._aliases = self._makeListOfDictsAttribute(attributes["aliases"])
147 if "created_at" in attributes: # pragma no branch
148 self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
149 if "created_by" in attributes: # pragma no branch
150 self._created_by = self._makeStringAttribute(attributes["created_by"])
151 if "curated" in attributes: # pragma no branch
152 self._curated = self._makeBoolAttribute(attributes["curated"])
153 if "description" in attributes: # pragma no branch
154 self._description = self._makeStringAttribute(attributes["description"])
155 if "display_name" in attributes: # pragma no branch
156 self._display_name = self._makeStringAttribute(attributes["display_name"])
157 if "featured" in attributes: # pragma no branch
158 self._featured = self._makeBoolAttribute(attributes["featured"])
159 if "logo_url" in attributes: # pragma no branch
160 self._logo_url = self._makeStringAttribute(attributes["logo_url"])
161 if "name" in attributes: # pragma no branch
162 self._name = self._makeStringAttribute(attributes["name"])
163 if "related" in attributes: # pragma no branch
164 self._related = self._makeListOfDictsAttribute(attributes["related"])
165 if "released" in attributes: # pragma no branch
166 self._released = self._makeStringAttribute(attributes["released"])
167 if "repository_count" in attributes: # pragma no branch
168 self._repository_count = self._makeIntAttribute(attributes["repository_count"])
169 if "score" in attributes: # pragma no branch
170 self._score = self._makeFloatAttribute(attributes["score"])
171 if "short_description" in attributes: # pragma no branch
172 self._short_description = self._makeStringAttribute(attributes["short_description"])
173 if "text_matches" in attributes: # pragma no branch
174 self._text_matches = self._makeDictAttribute(attributes["text_matches"])
175 if "updated_at" in attributes: # pragma no branch
176 self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"])

Callers

nothing calls this directly

Calls 7

_makeStringAttributeMethod · 0.80
_makeBoolAttributeMethod · 0.80
_makeIntAttributeMethod · 0.80
_makeFloatAttributeMethod · 0.80
_makeDictAttributeMethod · 0.80

Tested by

no test coverage detected