Skip to content

Commit

Permalink
remove Organization.mannequin_count
Browse files Browse the repository at this point in the history
  • Loading branch information
ShineyDev committed Feb 9, 2025
1 parent e688d19 commit 071c39e
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions github/organization/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _from_data(
"is_verified": "isVerified",
"is_viewer_following": "viewerIsFollowing",
"is_viewer_member": "viewerIsAMember",
"mannequin_count": "mannequins{totalCount}",
# "mannequin_count": "mannequins{totalCount}", # NOTE: throws FORBIDDEN in non-enterprise organizations
"team_count": "teams{totalCount}",
"twitter_username": "twitterUsername",
"updated_at": "updatedAt",
Expand Down Expand Up @@ -311,19 +311,6 @@ def is_viewer_member(

return self._data["viewerIsAMember"]

@property
def mannequin_count(
self,
/,
) -> int:
"""
The number of mannequins in the organization.
:type: :class:`int`
"""

return self._data["mannequins"]["totalCount"]

@property
def team_count(
self,
Expand Down Expand Up @@ -603,28 +590,6 @@ async def fetch_is_viewer_member(

return await self._fetch_field("viewerIsAMember") # type: ignore

async def fetch_mannequin_count(
self,
/,
) -> int:
"""
|coro|
Fetches the number of mannequins in the organization.
Raises
------
~github.core.errors.ClientObjectMissingFieldError
The :attr:`id` attribute is missing.
:rtype: :class:`int`
"""

return await self._fetch_field("mannequins{totalCount}") # type: ignore

async def fetch_team_count(
self,
/,
Expand Down

0 comments on commit 071c39e

Please sign in to comment.