redis.backoff: fix cap and base type (float) (#8454)

This commit is contained in:
Yasir Ekinci
2022-08-01 15:07:28 +08:00
committed by GitHub
parent 59a9621554
commit 76643099a9

View File

@@ -13,17 +13,17 @@ class NoBackoff(ConstantBackoff):
def __init__(self) -> None: ...
class ExponentialBackoff(AbstractBackoff):
def __init__(self, cap: int, base: int) -> None: ...
def __init__(self, cap: float, base: float) -> None: ...
def compute(self, failures: int) -> float: ...
class FullJitterBackoff(AbstractBackoff):
def __init__(self, cap: int, base: int) -> None: ...
def __init__(self, cap: float, base: float) -> None: ...
def compute(self, failures: int) -> float: ...
class EqualJitterBackoff(AbstractBackoff):
def __init__(self, cap: int, base: int) -> None: ...
def __init__(self, cap: float, base: float) -> None: ...
def compute(self, failures: int) -> float: ...
class DecorrelatedJitterBackoff(AbstractBackoff):
def __init__(self, cap: int, base: int) -> None: ...
def __init__(self, cap: float, base: float) -> None: ...
def compute(self, failures: int) -> float: ...