(self, attributes: dict[str, Any])
| 189 | return self._version.value |
| 190 | |
| 191 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 192 | if "change_status" in attributes: # pragma no branch |
| 193 | self._change_status = self._makeClassAttribute(github.CommitStats.CommitStats, attributes["change_status"]) |
| 194 | if "comments" in attributes: # pragma no branch |
| 195 | self._comments = self._makeIntAttribute(attributes["comments"]) |
| 196 | if "comments_url" in attributes: # pragma no branch |
| 197 | self._comments_url = self._makeStringAttribute(attributes["comments_url"]) |
| 198 | if "commits_url" in attributes: # pragma no branch |
| 199 | self._commits_url = self._makeStringAttribute(attributes["commits_url"]) |
| 200 | if "committed_at" in attributes: # pragma no branch |
| 201 | self._committed_at = self._makeDatetimeAttribute(attributes["committed_at"]) |
| 202 | if "created_at" in attributes: # pragma no branch |
| 203 | self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) |
| 204 | if "description" in attributes: # pragma no branch |
| 205 | self._description = self._makeStringAttribute(attributes["description"]) |
| 206 | if "files" in attributes: # pragma no branch |
| 207 | self._files = self._makeDictOfStringsToClassesAttribute(github.GistFile.GistFile, attributes["files"]) |
| 208 | if "forks" in attributes: # pragma no branch |
| 209 | self._forks = self._makeListOfClassesAttribute(github.Gist.Gist, attributes["forks"]) |
| 210 | if "forks_url" in attributes: # pragma no branch |
| 211 | self._forks_url = self._makeStringAttribute(attributes["forks_url"]) |
| 212 | if "git_pull_url" in attributes: # pragma no branch |
| 213 | self._git_pull_url = self._makeStringAttribute(attributes["git_pull_url"]) |
| 214 | if "git_push_url" in attributes: # pragma no branch |
| 215 | self._git_push_url = self._makeStringAttribute(attributes["git_push_url"]) |
| 216 | if "history" in attributes: # pragma no branch |
| 217 | self._history = self._makeListOfClassesAttribute(GistHistoryState, attributes["history"]) |
| 218 | if "html_url" in attributes: # pragma no branch |
| 219 | self._html_url = self._makeStringAttribute(attributes["html_url"]) |
| 220 | if "id" in attributes: # pragma no branch |
| 221 | self._id = self._makeStringAttribute(attributes["id"]) |
| 222 | if "owner" in attributes: # pragma no branch |
| 223 | self._owner = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["owner"]) |
| 224 | if "public" in attributes: # pragma no branch |
| 225 | self._public = self._makeBoolAttribute(attributes["public"]) |
| 226 | if "updated_at" in attributes: # pragma no branch |
| 227 | self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"]) |
| 228 | if "url" in attributes: # pragma no branch |
| 229 | self._url = self._makeStringAttribute(attributes["url"]) |
| 230 | if "user" in attributes: # pragma no branch |
| 231 | self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["user"]) |
| 232 | if "version" in attributes: # pragma no branch |
| 233 | self._version = self._makeStringAttribute(attributes["version"]) |
nothing calls this directly
no test coverage detected