1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-23 17:35:08 +00:00

Update NamedTuple to reflect accurately

This commit is contained in:
NextChai 2022-04-30 02:39:54 -04:00
parent 6488286a05
commit cefd66c933

View file

@ -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(