(self, attributes: dict[str, Any])
| 152 | return github.Issue.Issue(self._requester, url=self.subject.url) |
| 153 | |
| 154 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 155 | if "id" in attributes: # pragma no branch |
| 156 | self._id = self._makeStringAttribute(attributes["id"]) |
| 157 | if "last_read_at" in attributes: # pragma no branch |
| 158 | self._last_read_at = self._makeDatetimeAttribute(attributes["last_read_at"]) |
| 159 | if "reason" in attributes: # pragma no branch |
| 160 | self._reason = self._makeStringAttribute(attributes["reason"]) |
| 161 | if "repository" in attributes: # pragma no branch |
| 162 | self._repository = self._makeClassAttribute(github.Repository.Repository, attributes["repository"]) |
| 163 | if "subject" in attributes: # pragma no branch |
| 164 | self._subject = self._makeClassAttribute( |
| 165 | github.NotificationSubject.NotificationSubject, attributes["subject"] |
| 166 | ) |
| 167 | if "subscription_url" in attributes: # pragma no branch |
| 168 | self._subscription_url = self._makeStringAttribute(attributes["subscription_url"]) |
| 169 | if "unread" in attributes: # pragma no branch |
| 170 | self._unread = self._makeBoolAttribute(attributes["unread"]) |
| 171 | if "updated_at" in attributes: # pragma no branch |
| 172 | self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"]) |
| 173 | if "url" in attributes: # pragma no branch |
| 174 | self._url = self._makeStringAttribute(attributes["url"]) |
nothing calls this directly
no test coverage detected