8000 Retrieiving /user shows GitHub trimmed an attribute · justfortherec/github3.py@06c2495 · GitHub
[go: up one dir, main page]

Skip to content

Commit 06c2495

Browse files
committed
Retrieiving /user shows GitHub trimmed an attribute
They removed total_private_gists. For now, I'm opting to totally remove it. We may add it back later as a perpetual "None" though.
1 parent a3b42fc commit 06c2495

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

github3/users.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,11 @@ class AuthenticatedUser(User):
583583
currently authenticated user's plan and private email information.
584584
585585
.. versionadded:: 1.0.0
586+
587+
.. versionchanged:: 1.0.0
588+
589+
The ``total_private_gists`` attribute is no longer returned by
590+
GitHub's API and so is removed.
586591
"""
587592

588593
def _update_attributes(self, user):
@@ -592,9 +597,6 @@ def _update_attributes(self, user):
592597
#: Number of private repos owned by this user
593598
self.owned_private_repos = user['owned_private_repos']
594599

595-
#: Number of private gists owned by this user
596-
self.total_private_gists = user['total_private_gists']
597-
598600
#: Total number of private repos
599601
self.total_private_repos = user['total_private_repos']
600602

0 commit comments

Comments
 (0)
0