mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix some webhook related type checker errors
This commit is contained in:
1 parent
0dd4c4c08c
commit
fc66c5b92d
3 files changed
+7
-5
No files matched your search
+2
-2
@@ -464,8 +464,8 @@ def to_json(obj: Any) -> str:
|
||||
return json.dumps(obj, separators=(',', ':'), ensure_ascii=True)
|
||||
|
||||
|
||||
def _parse_ratelimit_header(request: _RequestLike, *, use_clock: bool = False) -> float:
|
||||
reset_after = request.headers.get('X-Ratelimit-Reset-After')
|
||||
def _parse_ratelimit_header(request: Any, *, use_clock: bool = False) -> float:
|
||||
reset_after: Optional[str] = request.headers.get('X-Ratelimit-Reset-After')
|
||||
if use_clock or not reset_after:
|
||||
utc = datetime.timezone.utc
|
||||
now = datetime.datetime.now(utc)
|
||||
|
||||
Reference in new issue
Block a user