Add reset to the repr for Rate (#1389)

Add the reset attribute to the repr for Rate, and add a test for good
measure.

Co-Authored-By: Jonathan Leitschuh <jonathan.leitschuh@gmail.com>
This commit is contained in:
Steve Kowalik
2020-02-11 14:17:52 +11:00
committed by GitHub
co-authored by Jonathan Leitschuh
parent e5ce4912f5
commit 0829af815f
2 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -37,7 +37,11 @@ class Rate(github.GithubObject.NonCompletableGithubObject):
def __repr__(self):
return self.get__repr__(
{"limit": self._limit.value, "remaining": self._remaining.value}
{
"limit": self._limit.value,
"remaining": self._remaining.value,
"reset": self._reset.value,
}
)
@property