From 699435c1a1365a192066e16456a4a7c4cdeaafe6 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Fri, 6 Dec 2024 07:15:13 +0100 Subject: [PATCH] . --- src/HABApp/util/rate_limiter/limits/fixed_window.py | 3 ++- src/HABApp/util/rate_limiter/limits/leaky_bucket.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/HABApp/util/rate_limiter/limits/fixed_window.py b/src/HABApp/util/rate_limiter/limits/fixed_window.py index 229b54e3..1fa1a646 100644 --- a/src/HABApp/util/rate_limiter/limits/fixed_window.py +++ b/src/HABApp/util/rate_limiter/limits/fixed_window.py @@ -1,6 +1,7 @@ from dataclasses import dataclass from time import monotonic -from typing import override + +from typing_extensions import override from .base import BaseRateLimit, BaseRateLimitInfo diff --git a/src/HABApp/util/rate_limiter/limits/leaky_bucket.py b/src/HABApp/util/rate_limiter/limits/leaky_bucket.py index c08f83c8..ffc04df0 100644 --- a/src/HABApp/util/rate_limiter/limits/leaky_bucket.py +++ b/src/HABApp/util/rate_limiter/limits/leaky_bucket.py @@ -1,11 +1,11 @@ -from dataclasses import dataclass from time import monotonic -from typing import Final, override +from typing import Final + +from typing_extensions import override from .base import BaseRateLimit, BaseRateLimitInfo -@dataclass class LeakyBucketLimitInfo(BaseRateLimitInfo): time_remaining: float #: Time remaining until the next drop