Skip to content

Commit 72c4d6c

Browse files
committed
Update definition of constants in urllib3.util.retry
1 parent d0907f1 commit 72c4d6c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

stubs/urllib3/urllib3/util/retry.pyi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any
1+
from typing import Any, FrozenSet, List
22

33
from .. import exceptions
44
from ..response import HTTPResponse
@@ -12,8 +12,15 @@ ResponseError = exceptions.ResponseError
1212
log: Any
1313

1414
class Retry:
15+
DEFAULT_ALLOWED_METHODS: FrozenSet[str]
16+
RETRY_AFTER_STATUS_CODES: FrozenSet[int]
17+
DEFAULT_REMOVE_HEADERS_ON_REDIRECT: FrozenSet[List[str]]
18+
DEFAULT_BACKOFF_MAX: int
19+
20+
# Deprecated constants
1521
DEFAULT_METHOD_WHITELIST: Any
1622
BACKOFF_MAX: Any
23+
1724
total: Any
1825
connect: Any
1926
read: Any

0 commit comments

Comments
 (0)