MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / delete

Method delete

github/RepositoryDiscussionComment.py:114–123  ·  view source on GitHub ↗
(self, output_schema: str = "id")

Source from the content-addressed store, hash-verified

112 )
113
114 def delete(self, output_schema: str = "id") -> RepositoryDiscussionComment:
115 if not output_schema.startswith("\n"):
116 output_schema = f" {output_schema} "
117 return self._requester.graphql_named_mutation_class(
118 "deleteDiscussionComment",
119 {"id": self.id},
120 f"comment {{{output_schema}}}",
121 "comment",
122 github.RepositoryDiscussionComment.RepositoryDiscussionComment,
123 )
124
125 def _useAttributes(self, attributes: dict[str, Any]) -> None:
126 # super class is a REST API GithubObject, attributes are coming from GraphQL

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected