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

Method remove_from_assignees

github/Issue.py:545–558  ·  view source on GitHub ↗

:calls: `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees `_

(self, *assignees: NamedUser | str)

Source from the content-addressed store, hash-verified

543 return PaginatedList(github.Label.Label, self._requester, f"{self.url}/labels", None)
544
545 def remove_from_assignees(self, *assignees: NamedUser | str) -> None:
546 """
547 :calls: `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees <https://docs.github.com/en/rest/reference/issues#assignees>`_
548 """
549 assert all(isinstance(element, (github.NamedUser.NamedUser, str)) for element in assignees), assignees
550 post_parameters = {
551 "assignees": [
552 assignee.login if isinstance(assignee, github.NamedUser.NamedUser) else assignee
553 for assignee in assignees
554 ]
555 }
556 headers, data = self._requester.requestJsonAndCheck("DELETE", f"{self.url}/assignees", input=post_parameters)
557 self._useAttributes(data)
558 self._set_complete()
559
560 def remove_from_labels(self, label: Label | str) -> None:
561 """

Callers 2

Calls 3

_useAttributesMethod · 0.95
requestJsonAndCheckMethod · 0.80
_set_completeMethod · 0.80

Tested by

no test coverage detected