Skip to content

Commit a9bd887

Browse files
committed
Fix mypy errors
1 parent 67fc321 commit a9bd887

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pinecone/openapi_support/retry_aiohttp.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ class JitterRetry(RetryOptionsBase):
1111

1212
def __init__(
1313
self,
14-
attempts: Optional[int] = 3, # How many times we should retry
15-
start_timeout: Optional[float] = 0.1, # Base timeout time, then it exponentially grow
16-
max_timeout: Optional[float] = 5.0, # Max possible timeout between tries
14+
attempts: int = 3, # How many times we should retry
15+
start_timeout: float = 0.1, # Base timeout time, then it exponentially grow
16+
max_timeout: float = 5.0, # Max possible timeout between tries
1717
statuses: Optional[set[int]] = None, # On which statuses we should retry
1818
exceptions: Optional[set[type[Exception]]] = None, # On which exceptions we should retry
1919
methods: Optional[set[str]] = None, # On which HTTP methods we should retry
20-
random_interval_size: Optional[float] = 2.0, # size of interval for random component
2120
retry_all_server_errors: bool = True,
2221
evaluate_response_callback: Optional[EvaluateResponseCallbackType] = None,
2322
) -> None:
@@ -32,7 +31,6 @@ def __init__(
3231

3332
self._start_timeout: float = start_timeout
3433
self._max_timeout: float = max_timeout
35-
self._random_interval_size = random_interval_size
3634

3735
def get_timeout(
3836
self,

0 commit comments

Comments
 (0)