Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Dec 20, 2023
1 parent 710a5ae commit 0f71855
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/HABApp/util/rate_limiter/limiter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass
from typing import Final, List, Literal, Tuple, TypeAlias, Union
from typing import Final, List, Literal, Tuple, Union

from HABApp.core.const.const import StrEnum
from HABApp.core.const.const import PYTHON_310, StrEnum

from .limits import (
BaseRateLimit,
Expand All @@ -13,6 +13,12 @@
from .parser import parse_limit


if PYTHON_310:
from typing import TypeAlias
else:
from typing_extensions import TypeAlias


class LimitTypeEnum(StrEnum):
LEAKY_BUCKET = 'leaky_bucket'
FIXED_WINDOW_ELASTIC_EXPIRY = 'fixed_window_elastic_expiry'
Expand Down

0 comments on commit 0f71855

Please sign in to comment.