Fix urllib3.util.Retry.sleep type (#6883)

This commit is contained in:
Philip Dexter
2022-01-10 10:58:23 +01:00
committed by GitHub
parent fc4ba3ac64
commit 9de17bd5ae
2 changed files with 2 additions and 5 deletions
+2 -1
View File
@@ -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=...): ...