Browse Source

Fix Ratelimit._future typehint

Co-authored-by: Danny <[email protected]>
pull/10287/head
imp 2 months ago
committed by GitHub
parent
commit
f7e1b8952a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/http.py

2
discord/http.py

@ -378,7 +378,7 @@ class Ratelimit:
self.http: HTTPClient = http
self._last_request: float = 0.0
self._lock: asyncio.Lock = asyncio.Lock()
self._future: Optional[asyncio.Future] = None
self._future: Optional[asyncio.Future[None]] = None
def __repr__(self) -> str:
return f'<RateLimitBucket limit={self.limit} remaining={self.remaining} pending={self.pending}>'

Loading…
Cancel
Save