Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Dec 6, 2024
1 parent e47d5bb commit 699435c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/HABApp/util/rate_limiter/limits/fixed_window.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/HABApp/util/rate_limiter/limits/leaky_bucket.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 699435c

Please sign in to comment.