From cefd66c9335f3bab36d1db8ecca681f7b00ada8a Mon Sep 17 00:00:00 2001 From: NextChai <75498301+NextChai@users.noreply.github.com> Date: Sat, 30 Apr 2022 02:39:54 -0400 Subject: [PATCH] Update NamedTuple to reflect accurately --- Github/http.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Github/http.py b/Github/http.py index af41620..a6257f3 100644 --- a/Github/http.py +++ b/Github/http.py @@ -25,7 +25,15 @@ __all__ = ( LINK_PARSING_RE = re.compile(r"<(\S+(\S))>; rel=\"(\S+)\"") -Rates = NamedTuple('Rates', 'remaining', 'used', 'total', 'reset_when', 'last_request') + + +class Rates(NamedTuple): + remaining: str + used: str + total: str + reset_when: Union[datetime, str] + last_request: Union[datetime, str] + # aiohttp request tracking / checking bits async def on_req_start(