(self, attributes: dict[str, Any])
| 1059 | return data |
| 1060 | |
| 1061 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 1062 | if "_links" in attributes: # pragma no branch |
| 1063 | self.__links = self._makeDictAttribute(attributes["_links"]) |
| 1064 | if "active_lock_reason" in attributes: # pragma no branch |
| 1065 | self._active_lock_reason = self._makeStringAttribute(attributes["active_lock_reason"]) |
| 1066 | if "additions" in attributes: # pragma no branch |
| 1067 | self._additions = self._makeIntAttribute(attributes["additions"]) |
| 1068 | if "assignee" in attributes: # pragma no branch |
| 1069 | self._assignee = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["assignee"]) |
| 1070 | if "assignees" in attributes: # pragma no branch |
| 1071 | self._assignees = self._makeListOfClassesAttribute(github.NamedUser.NamedUser, attributes["assignees"]) |
| 1072 | elif "assignee" in attributes: |
| 1073 | if attributes["assignee"] is not None: |
| 1074 | self._assignees = self._makeListOfClassesAttribute(github.NamedUser.NamedUser, [attributes["assignee"]]) |
| 1075 | else: |
| 1076 | self._assignees = self._makeListOfClassesAttribute(github.NamedUser.NamedUser, []) |
| 1077 | if "author_association" in attributes: # pragma no branch |
| 1078 | self._author_association = self._makeStringAttribute(attributes["author_association"]) |
| 1079 | if "auto_merge" in attributes: # pragma no branch |
| 1080 | self._auto_merge = self._makeDictAttribute(attributes["auto_merge"]) |
| 1081 | if "base" in attributes: # pragma no branch |
| 1082 | self._base = self._makeClassAttribute(github.PullRequestPart.PullRequestPart, attributes["base"]) |
| 1083 | if "body" in attributes: # pragma no branch |
| 1084 | self._body = self._makeStringAttribute(attributes["body"]) |
| 1085 | if "changed_files" in attributes: # pragma no branch |
| 1086 | self._changed_files = self._makeIntAttribute(attributes["changed_files"]) |
| 1087 | if "closed_at" in attributes: # pragma no branch |
| 1088 | self._closed_at = self._makeDatetimeAttribute(attributes["closed_at"]) |
| 1089 | if "comments" in attributes: # pragma no branch |
| 1090 | self._comments = self._makeIntAttribute(attributes["comments"]) |
| 1091 | if "comments_url" in attributes: # pragma no branch |
| 1092 | self._comments_url = self._makeStringAttribute(attributes["comments_url"]) |
| 1093 | if "commits" in attributes: # pragma no branch |
| 1094 | self._commits = self._makeIntAttribute(attributes["commits"]) |
| 1095 | if "commits_url" in attributes: # pragma no branch |
| 1096 | self._commits_url = self._makeStringAttribute(attributes["commits_url"]) |
| 1097 | if "created_at" in attributes: # pragma no branch |
| 1098 | self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) |
| 1099 | if "deletions" in attributes: # pragma no branch |
| 1100 | self._deletions = self._makeIntAttribute(attributes["deletions"]) |
| 1101 | if "diff_url" in attributes: # pragma no branch |
| 1102 | self._diff_url = self._makeStringAttribute(attributes["diff_url"]) |
| 1103 | if "draft" in attributes: # pragma no branch |
| 1104 | self._draft = self._makeBoolAttribute(attributes["draft"]) |
| 1105 | if "head" in attributes: # pragma no branch |
| 1106 | self._head = self._makeClassAttribute(github.PullRequestPart.PullRequestPart, attributes["head"]) |
| 1107 | if "html_url" in attributes: # pragma no branch |
| 1108 | self._html_url = self._makeStringAttribute(attributes["html_url"]) |
| 1109 | if "id" in attributes: # pragma no branch |
| 1110 | self._id = self._makeIntAttribute(attributes["id"]) |
| 1111 | if "issue_url" in attributes: # pragma no branch |
| 1112 | self._issue_url = self._makeStringAttribute(attributes["issue_url"]) |
| 1113 | if "labels" in attributes: # pragma no branch |
| 1114 | self._labels = self._makeListOfClassesAttribute(github.Label.Label, attributes["labels"]) |
| 1115 | if "locked" in attributes: # pragma no branch |
| 1116 | self._locked = self._makeBoolAttribute(attributes["locked"]) |
| 1117 | if "maintainer_can_modify" in attributes: # pragma no branch |
| 1118 | self._maintainer_can_modify = self._makeBoolAttribute(attributes["maintainer_can_modify"]) |
no test coverage detected