From 11b53a2018c6257a378846f61dd38df75a4625b3 Mon Sep 17 00:00:00 2001 From: imp <106537315+imptype@users.noreply.github.com> Date: Wed, 3 Sep 2025 14:46:34 +0100 Subject: [PATCH] Use explicit comparison Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com> --- discord/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index 6767e2f3d..1139a3ec5 100644 --- a/discord/http.py +++ b/discord/http.py @@ -433,7 +433,7 @@ class Ratelimit: return delta >= 300 and (self.one_shot or (self.outgoing == 0 and self.pending == 0)) def _wake(self) -> None: - if self._future and not self._future.done(): + if self._future is not None and not self._future.done(): self._future.set_result(None) async def _wait_global(self, start_time: float):