From 1a0e0a4023670b428b7b0fc55b079a7511790d4c Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 13 Jan 2022 06:26:56 -0800 Subject: [PATCH] urllib3: allow allowed_methods to be False (#6909) --- stubs/urllib3/urllib3/util/retry.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/urllib3/urllib3/util/retry.pyi b/stubs/urllib3/urllib3/util/retry.pyi index fe03433ab..9a6883ed9 100644 --- a/stubs/urllib3/urllib3/util/retry.pyi +++ b/stubs/urllib3/urllib3/util/retry.pyi @@ -35,7 +35,7 @@ class Retry: redirect: Literal[True] | int | None status: int | None other: int | None - allowed_methods: Collection[str] | None + allowed_methods: Collection[str] | Literal[False] | None status_forcelist: Collection[int] backoff_factor: float raise_on_redirect: bool @@ -51,7 +51,7 @@ class Retry: redirect: bool | int | None = ..., status: int | None = ..., other: int | None = ..., - allowed_methods: Collection[str] | None = ..., + allowed_methods: Collection[str] | Literal[False] | None = ..., status_forcelist: Collection[int] | None = ..., backoff_factor: float = ..., raise_on_redirect: bool = ...,