:calls: `PATCH /gists/{gist_id}/comments/{comment_id} `_
(self, body: str)
| 123 | headers, data = self._requester.requestJsonAndCheck("DELETE", self.url) |
| 124 | |
| 125 | def edit(self, body: str) -> None: |
| 126 | """ |
| 127 | :calls: `PATCH /gists/{gist_id}/comments/{comment_id} <https://docs.github.com/en/rest/reference/gists#comments>`_ |
| 128 | """ |
| 129 | assert isinstance(body, str), body |
| 130 | post_parameters = { |
| 131 | "body": body, |
| 132 | } |
| 133 | headers, data = self._requester.requestJsonAndCheck("PATCH", self.url, input=post_parameters) |
| 134 | self._useAttributes(data) |
| 135 | self._set_complete() |
| 136 | |
| 137 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 138 | if "author_association" in attributes: # pragma no branch |
nothing calls this directly
no test coverage detected