(self, attributes: dict[str, Any])
| 226 | return self._url.value |
| 227 | |
| 228 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 229 | if "_links" in attributes: # pragma no branch |
| 230 | self.__links = self._makeDictAttribute(attributes["_links"]) |
| 231 | if "commit" in attributes: # pragma no branch |
| 232 | self._commit = self._makeClassAttribute(github.GitCommit.GitCommit, attributes["commit"]) |
| 233 | if "content" in attributes: # pragma no branch |
| 234 | self._content = self._makeStringAttribute(attributes["content"]) |
| 235 | if "download_url" in attributes: # pragma no branch |
| 236 | self._download_url = self._makeStringAttribute(attributes["download_url"]) |
| 237 | if "encoding" in attributes: # pragma no branch |
| 238 | self._encoding = self._makeStringAttribute(attributes["encoding"]) |
| 239 | if "file_size" in attributes: # pragma no branch |
| 240 | self._file_size = self._makeIntAttribute(attributes["file_size"]) |
| 241 | if "git_url" in attributes: # pragma no branch |
| 242 | self._git_url = self._makeStringAttribute(attributes["git_url"]) |
| 243 | if "html_url" in attributes: # pragma no branch |
| 244 | self._html_url = self._makeStringAttribute(attributes["html_url"]) |
| 245 | if "language" in attributes: # pragma no branch |
| 246 | self._language = self._makeStringAttribute(attributes["language"]) |
| 247 | if "last_modified_at" in attributes: # pragma no branch |
| 248 | self._last_modified_at = self._makeDatetimeAttribute(attributes["last_modified_at"]) |
| 249 | if "license" in attributes: # pragma no branch |
| 250 | self._license = self._makeClassAttribute(github.License.License, attributes["license"]) |
| 251 | if "line_numbers" in attributes: # pragma no branch |
| 252 | self._line_numbers = self._makeListOfStringsAttribute(attributes["line_numbers"]) |
| 253 | if "name" in attributes: # pragma no branch |
| 254 | self._name = self._makeStringAttribute(attributes["name"]) |
| 255 | if "path" in attributes: # pragma no branch |
| 256 | self._path = self._makeStringAttribute(attributes["path"]) |
| 257 | if "repository" in attributes: # pragma no branch |
| 258 | self._repository = self._makeClassAttribute(github.Repository.Repository, attributes["repository"]) |
| 259 | if "sha" in attributes: # pragma no branch |
| 260 | self._sha = self._makeStringAttribute(attributes["sha"]) |
| 261 | if "size" in attributes: # pragma no branch |
| 262 | self._size = self._makeIntAttribute(attributes["size"]) |
| 263 | if "submodule_git_url" in attributes: # pragma no branch |
| 264 | self._submodule_git_url = self._makeStringAttribute(attributes["submodule_git_url"]) |
| 265 | if "target" in attributes: # pragma no branch |
| 266 | self._target = self._makeStringAttribute(attributes["target"]) |
| 267 | if "text_matches" in attributes: # pragma no branch |
| 268 | self._text_matches = self._makeListOfDictsAttribute(attributes["text_matches"]) |
| 269 | if "type" in attributes: # pragma no branch |
| 270 | self._type = self._makeStringAttribute(attributes["type"]) |
| 271 | if "url" in attributes: # pragma no branch |
| 272 | self._url = self._makeStringAttribute(attributes["url"]) |
| 273 | |
| 274 | |
| 275 | class ContentFileSearchResult(ContentFile): |
no test coverage detected