MCPcopy
hub / github.com/PyGithub/PyGithub / get_team_push_restrictions

Method get_team_push_restrictions

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

Source from the content-addressed store, hash-verified

171 )
172
173 def get_team_push_restrictions(self) -> PaginatedList[Team] | None:
174 if not is_defined(self._team_push_restrictions):
175 return None
176 return github.PaginatedList.PaginatedList(github.Team.Team, self._requester, self._team_push_restrictions, None)
177
178 def _useAttributes(self, attributes: dict[str, Any]) -> None:
179 if "allow_deletions" in attributes: # pragma no branch

Callers

nothing calls this directly

Calls 1

is_definedFunction · 0.90

Tested by

no test coverage detected