better mypy compliance

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-12 12:56:09 -04:00
parent db2aecbac8
commit c7d0f3ef01
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -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
View File
@@ -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