From f93b0a022421fa7f352ebe8bded600e36d905506 Mon Sep 17 00:00:00 2001 From: Vitaliy Kucheryaviy Date: Fri, 5 Jul 2024 18:53:19 +0300 Subject: [PATCH] throttling in async mode (fixes #1217) --- ninja/operation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ninja/operation.py b/ninja/operation.py index e823301f..b47eb4f2 100644 --- a/ninja/operation.py +++ b/ninja/operation.py @@ -353,7 +353,7 @@ async def _run_checks(self, request: HttpRequest) -> Optional[HttpResponse]: # # Throttling: if self.throttle_objects: - error = self._check_throttles(request) # type: ignore + error = self._check_throttles(request) if error: return error