From 76643099a9e32d911deb9e6c980a4d3bc5fa6696 Mon Sep 17 00:00:00 2001 From: Yasir Ekinci Date: Mon, 1 Aug 2022 15:07:28 +0800 Subject: [PATCH] redis.backoff: fix `cap` and `base` type (float) (#8454) --- stubs/redis/redis/backoff.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stubs/redis/redis/backoff.pyi b/stubs/redis/redis/backoff.pyi index 42990c02c..643c0bceb 100644 --- a/stubs/redis/redis/backoff.pyi +++ b/stubs/redis/redis/backoff.pyi @@ -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: ...