mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 14:45:23 +08:00
redis.backoff: fix cap and base type (float) (#8454)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user