(self, attributes: dict[str, Any])
| 217 | return self._url.value |
| 218 | |
| 219 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 220 | if "actor" in attributes: # pragma no branch |
| 221 | self._actor = self._makeUnionClassAttributeFromTypeKey( |
| 222 | "type", |
| 223 | "User", |
| 224 | attributes["actor"], |
| 225 | (github.NamedUser.NamedUser, "User"), |
| 226 | (github.Organization.Organization, "Organization"), |
| 227 | ) |
| 228 | if "assignee" in attributes: # pragma no branch |
| 229 | self._assignee = self._makeUnionClassAttributeFromTypeKey( |
| 230 | "type", |
| 231 | "User", |
| 232 | attributes["assignee"], |
| 233 | (github.NamedUser.NamedUser, "User"), |
| 234 | (github.Organization.Organization, "Organization"), |
| 235 | ) |
| 236 | if "assigner" in attributes: # pragma no branch |
| 237 | self._assigner = self._makeUnionClassAttributeFromTypeKey( |
| 238 | "type", |
| 239 | "User", |
| 240 | attributes["assigner"], |
| 241 | (github.NamedUser.NamedUser, "User"), |
| 242 | (github.Organization.Organization, "Organization"), |
| 243 | ) |
| 244 | if "author_association" in attributes: # pragma no branch |
| 245 | self._author_association = self._makeDictAttribute(attributes["author_association"]) |
| 246 | if "commit_id" in attributes: # pragma no branch |
| 247 | self._commit_id = self._makeStringAttribute(attributes["commit_id"]) |
| 248 | if "commit_url" in attributes: # pragma no branch |
| 249 | self._commit_url = self._makeStringAttribute(attributes["commit_url"]) |
| 250 | if "created_at" in attributes: # pragma no branch |
| 251 | self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) |
| 252 | if "dismissed_review" in attributes: # pragma no branch |
| 253 | self._dismissed_review = self._makeDictAttribute(attributes["dismissed_review"]) |
| 254 | if "event" in attributes: # pragma no branch |
| 255 | self._event = self._makeStringAttribute(attributes["event"]) |
| 256 | if "id" in attributes: # pragma no branch |
| 257 | self._id = self._makeIntAttribute(attributes["id"]) |
| 258 | if "issue" in attributes: # pragma no branch |
| 259 | self._issue = self._makeClassAttribute(github.Issue.Issue, attributes["issue"]) |
| 260 | if "label" in attributes: # pragma no branch |
| 261 | self._label = self._makeClassAttribute(github.Label.Label, attributes["label"]) |
| 262 | if "lock_reason" in attributes: # pragma no branch |
| 263 | self._lock_reason = self._makeStringAttribute(attributes["lock_reason"]) |
| 264 | if "milestone" in attributes: # pragma no branch |
| 265 | self._milestone = self._makeClassAttribute(github.Milestone.Milestone, attributes["milestone"]) |
| 266 | if "node_id" in attributes: # pragma no branch |
| 267 | self._node_id = self._makeStringAttribute(attributes["node_id"]) |
| 268 | if "performed_via_github_app" in attributes: # pragma no branch |
| 269 | self._performed_via_github_app = self._makeClassAttribute( |
| 270 | github.GithubApp.GithubApp, attributes["performed_via_github_app"] |
| 271 | ) |
| 272 | if "project_card" in attributes: # pragma no branch |
| 273 | self._project_card = self._makeDictAttribute(attributes["project_card"]) |
| 274 | if "rename" in attributes: # pragma no branch |
| 275 | self._rename = self._makeDictAttribute(attributes["rename"]) |
| 276 | if "requested_reviewer" in attributes: # pragma no branch |
nothing calls this directly
no test coverage detected