MCPcopy
hub / github.com/PyGithub/PyGithub / get_user_push_restrictions

Method get_user_push_restrictions

github/BranchProtection.py:163–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 return self._url.value
162
163 def get_user_push_restrictions(self) -> PaginatedList[NamedUser] | None:
164 if not is_defined(self._user_push_restrictions):
165 return None
166 return PaginatedList(
167 github.NamedUser.NamedUser,
168 self._requester,
169 self._user_push_restrictions,
170 None,
171 )
172
173 def get_team_push_restrictions(self) -> PaginatedList[Team] | None:
174 if not is_defined(self._team_push_restrictions):

Callers

nothing calls this directly

Calls 2

is_definedFunction · 0.90
PaginatedListClass · 0.90

Tested by

no test coverage detected