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

Method has_in_following

github/NamedUser.py:581–587  ·  view source on GitHub ↗

:calls: `GET /users/{username}/following/{target_user} `_

(self, following: NamedUser)

Source from the content-addressed store, hash-verified

579 )
580
581 def has_in_following(self, following: NamedUser) -> bool:
582 """
583 :calls: `GET /users/{username}/following/{target_user} <https://docs.github.com/en/rest/reference/users#check-if-a-user-follows-another-user>`_
584 """
585 assert isinstance(following, github.NamedUser.NamedUser), following
586 status, headers, data = self._requester.requestJson("GET", f"{self.url}/following/{following._identity}")
587 return status == 204
588
589 def get_organization_membership(self, org: str | Organization) -> Membership:
590 """

Callers 2

testHasInFollowingMethod · 0.45
testFollowingMethod · 0.45

Calls 1

requestJsonMethod · 0.80

Tested by

no test coverage detected