mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-09-20 18:23:15 +08:00
Fix urllib3.util.Retry.sleep type (#6883)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from typing import Any
|
||||
|
||||
from .. import exceptions
|
||||
from ..response import HTTPResponse
|
||||
|
||||
ConnectTimeoutError = exceptions.ConnectTimeoutError
|
||||
MaxRetryError = exceptions.MaxRetryError
|
||||
@@ -43,7 +44,7 @@ class Retry:
|
||||
@classmethod
|
||||
def from_int(cls, retries, redirect=..., default=...): ...
|
||||
def get_backoff_time(self): ...
|
||||
def sleep(self): ...
|
||||
def sleep(self, response: HTTPResponse | None = ...) -> None: ...
|
||||
def is_forced_retry(self, method, status_code): ...
|
||||
def is_exhausted(self): ...
|
||||
def increment(self, method=..., url=..., response=..., error=..., _pool=..., _stacktrace=...): ...
|
||||
|
||||
Reference in New Issue
Block a user