(self, attributes: dict[str, Any])
| 262 | return data["unminimizedComment"]["isMinimized"] is False |
| 263 | |
| 264 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 265 | if "author_association" in attributes: # pragma no branch |
| 266 | self._author_association = self._makeStringAttribute(attributes["author_association"]) |
| 267 | if "body" in attributes: # pragma no branch |
| 268 | self._body = self._makeStringAttribute(attributes["body"]) |
| 269 | if "body_html" in attributes: # pragma no branch |
| 270 | self._body_html = self._makeStringAttribute(attributes["body_html"]) |
| 271 | if "body_text" in attributes: # pragma no branch |
| 272 | self._body_text = self._makeStringAttribute(attributes["body_text"]) |
| 273 | if "created_at" in attributes: # pragma no branch |
| 274 | self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) |
| 275 | if "html_url" in attributes: # pragma no branch |
| 276 | self._html_url = self._makeStringAttribute(attributes["html_url"]) |
| 277 | if "id" in attributes: # pragma no branch |
| 278 | self._id = self._makeIntAttribute(attributes["id"]) |
| 279 | elif "url" in attributes and attributes["url"]: |
| 280 | id = attributes["url"].split("/")[-1] |
| 281 | if id.isnumeric(): |
| 282 | self._id = self._makeIntAttribute(int(id)) |
| 283 | if "issue_url" in attributes: # pragma no branch |
| 284 | self._issue_url = self._makeStringAttribute(attributes["issue_url"]) |
| 285 | if "node_id" in attributes: # pragma no branch |
| 286 | self._node_id = self._makeStringAttribute(attributes["node_id"]) |
| 287 | if "performed_via_github_app" in attributes: # pragma no branch |
| 288 | self._performed_via_github_app = self._makeClassAttribute( |
| 289 | github.GithubApp.GithubApp, attributes["performed_via_github_app"] |
| 290 | ) |
| 291 | if "reactions" in attributes: |
| 292 | self._reactions = self._makeDictAttribute(attributes["reactions"]) |
| 293 | if "updated_at" in attributes: # pragma no branch |
| 294 | self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"]) |
| 295 | if "url" in attributes: # pragma no branch |
| 296 | self._url = self._makeStringAttribute(attributes["url"]) |
| 297 | if "user" in attributes: # pragma no branch |
| 298 | self._user = self._makeUnionClassAttributeFromTypeKey( |
| 299 | "type", |
| 300 | "User", |
| 301 | attributes["user"], |
| 302 | (github.NamedUser.NamedUser, "User"), |
| 303 | (github.Organization.Organization, "Organization"), |
| 304 | ) |
no test coverage detected