(self, attributes: dict[str, Any])
| 714 | ) |
| 715 | |
| 716 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 717 | if "active_lock_reason" in attributes: # pragma no branch |
| 718 | self._active_lock_reason = self._makeStringAttribute(attributes["active_lock_reason"]) |
| 719 | if "assignee" in attributes: # pragma no branch |
| 720 | self._assignee = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["assignee"]) |
| 721 | if "assignees" in attributes: # pragma no branch |
| 722 | self._assignees = self._makeListOfClassesAttribute(github.NamedUser.NamedUser, attributes["assignees"]) |
| 723 | elif "assignee" in attributes: |
| 724 | if attributes["assignee"] is not None: |
| 725 | self._assignees = self._makeListOfClassesAttribute(github.NamedUser.NamedUser, [attributes["assignee"]]) |
| 726 | else: |
| 727 | self._assignees = self._makeListOfClassesAttribute(github.NamedUser.NamedUser, []) |
| 728 | if "author_association" in attributes: # pragma no branch |
| 729 | self._author_association = self._makeStringAttribute(attributes["author_association"]) |
| 730 | if "body" in attributes: # pragma no branch |
| 731 | self._body = self._makeStringAttribute(attributes["body"]) |
| 732 | if "body_html" in attributes: # pragma no branch |
| 733 | self._body_html = self._makeStringAttribute(attributes["body_html"]) |
| 734 | if "body_text" in attributes: # pragma no branch |
| 735 | self._body_text = self._makeStringAttribute(attributes["body_text"]) |
| 736 | if "closed_at" in attributes: # pragma no branch |
| 737 | self._closed_at = self._makeDatetimeAttribute(attributes["closed_at"]) |
| 738 | if "closed_by" in attributes: # pragma no branch |
| 739 | self._closed_by = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["closed_by"]) |
| 740 | if "comments" in attributes: # pragma no branch |
| 741 | self._comments = self._makeIntAttribute(attributes["comments"]) |
| 742 | if "comments_url" in attributes: # pragma no branch |
| 743 | self._comments_url = self._makeStringAttribute(attributes["comments_url"]) |
| 744 | if "created_at" in attributes: # pragma no branch |
| 745 | self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) |
| 746 | if "draft" in attributes: # pragma no branch |
| 747 | self._draft = self._makeBoolAttribute(attributes["draft"]) |
| 748 | if "events_url" in attributes: # pragma no branch |
| 749 | self._events_url = self._makeStringAttribute(attributes["events_url"]) |
| 750 | if "html_url" in attributes: # pragma no branch |
| 751 | self._html_url = self._makeStringAttribute(attributes["html_url"]) |
| 752 | if "id" in attributes: # pragma no branch |
| 753 | self._id = self._makeIntAttribute(attributes["id"]) |
| 754 | if "issue_dependencies_summary" in attributes: # pragma no branch |
| 755 | self._issue_dependencies_summary = self._makeClassAttribute( |
| 756 | github.IssueDependenciesSummary.IssueDependenciesSummary, attributes["issue_dependencies_summary"] |
| 757 | ) |
| 758 | if "labels" in attributes: # pragma no branch |
| 759 | self._labels = self._makeListOfClassesAttribute(github.Label.Label, attributes["labels"]) |
| 760 | if "labels_url" in attributes: # pragma no branch |
| 761 | self._labels_url = self._makeStringAttribute(attributes["labels_url"]) |
| 762 | if "locked" in attributes: # pragma no branch |
| 763 | self._locked = self._makeBoolAttribute(attributes["locked"]) |
| 764 | if "milestone" in attributes: # pragma no branch |
| 765 | self._milestone = self._makeClassAttribute(github.Milestone.Milestone, attributes["milestone"]) |
| 766 | if "node_id" in attributes: # pragma no branch |
| 767 | self._node_id = self._makeStringAttribute(attributes["node_id"]) |
| 768 | if "number" in attributes: # pragma no branch |
| 769 | self._number = self._makeIntAttribute(attributes["number"]) |
| 770 | elif "url" in attributes: |
| 771 | number = attributes["url"].split("/")[-1] |
| 772 | if number.isnumeric(): |
| 773 | self._number = self._makeIntAttribute(int(number)) |
no test coverage detected