mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-24 09:55:07 +00:00
Update NamedTuple to reflect accurately
This commit is contained in:
parent
6488286a05
commit
cefd66c933
1 changed files with 9 additions and 1 deletions
|
@ -25,7 +25,15 @@ __all__ = (
|
||||||
|
|
||||||
|
|
||||||
LINK_PARSING_RE = re.compile(r"<(\S+(\S))>; rel=\"(\S+)\"")
|
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
|
# aiohttp request tracking / checking bits
|
||||||
async def on_req_start(
|
async def on_req_start(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue