MCPcopy
hub / github.com/PyGithub/PyGithub / users

Method users

github/EnterpriseConsumedLicenses.py:86–105  ·  view source on GitHub ↗

This is a `paginated property `_. Iterating over this paginated list may fetch multiple pages. The size of these pages can be controlled via the ``…_per_page`` parameter of :meth:`gi

(self)

Source from the content-addressed store, hash-verified

84
85 @property
86 def users(self) -> PaginatedList[NamedEnterpriseUser]:
87 """
88 This is a `paginated property <https://pygithub.readthedocs.io/en/stable/utilities.html#classes-with-paginated-properties>`_.
89
90 Iterating over this paginated list may fetch multiple pages. The size of these pages can be controlled via
91 the ``…_per_page`` parameter of :meth:`github.Enterprise.Enterprise.get_consumed_licenses`,
92 :meth:`github.EnterpriseConsumedLicenses.EnterpriseConsumedLicenses.get_users`, or :meth:`github.Github`.
93
94 If no ``per_page`` is given, the default page size is 30. The maximum is 100.
95 """
96 return PaginatedList(
97 NamedEnterpriseUser,
98 self._requester,
99 self.url,
100 self._pagination_parameters,
101 headers=None,
102 list_item="users",
103 firstData=self.raw_data,
104 firstHeaders=self.raw_headers,
105 )
106
107 def get_users(self, licence_users_per_page: int | None = None) -> PaginatedList[NamedEnterpriseUser]:
108 """

Callers

nothing calls this directly

Calls 1

PaginatedListClass · 0.90

Tested by

no test coverage detected