mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
better mypy compliance
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
+3
-3
@@ -22,9 +22,9 @@ from http.cookies import Morsel
|
||||
from io import StringIO
|
||||
|
||||
|
||||
builtin_str = str
|
||||
str = str
|
||||
bytes = bytes
|
||||
builtin_str = str # type: ignore
|
||||
str = str # type: ignore
|
||||
bytes = bytes # type: ignore
|
||||
basestring = (str, bytes)
|
||||
numeric_types = (int, float)
|
||||
integer_types = (int,)
|
||||
|
||||
+5
-5
@@ -52,11 +52,11 @@ from .status_codes import codes
|
||||
#: The set of HTTP status codes that indicate an automatically
|
||||
#: processable redirect.
|
||||
REDIRECT_STATI = (
|
||||
codes.moved, # 301
|
||||
codes.found, # 302
|
||||
codes.other, # 303
|
||||
codes.temporary_redirect, # 307
|
||||
codes.permanent_redirect, # 308
|
||||
codes[301],
|
||||
codes[302],
|
||||
codes[303],
|
||||
codes[303],
|
||||
codes[308],
|
||||
)
|
||||
|
||||
DEFAULT_REDIRECT_LIMIT = 30
|
||||
|
||||
Reference in New Issue
Block a user