mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge branch '3.0' of github.com:requests/requests into 3.0
This commit is contained in:
@@ -44,7 +44,7 @@ import warnings
|
||||
from .exceptions import RequestsDependencyWarning
|
||||
|
||||
|
||||
def check_compatibility(urllib3_version, chardet_version):
|
||||
def check_compatibility(urllib3_version: str, chardet_version: str) -> None:
|
||||
urllib3_version = urllib3_version.split('.')
|
||||
assert urllib3_version != ['dev'] # Verify urllib3 isn't installed from git.
|
||||
# Sometimes, urllib3 only reports its version as 16.1.
|
||||
@@ -66,7 +66,7 @@ def check_compatibility(urllib3_version, chardet_version):
|
||||
assert patch >= 2
|
||||
|
||||
|
||||
def _check_cryptography(cryptography_version):
|
||||
def _check_cryptography(cryptography_version: str) -> None:
|
||||
# cryptography < 1.3.4
|
||||
try:
|
||||
cryptography_version = list(map(int, cryptography_version.split('.')))
|
||||
|
||||
Reference in New Issue
Block a user