From 38b29446b09ed288c7ec40235a4858a67b9d890e Mon Sep 17 00:00:00 2001 From: RatanShreshtha Date: Wed, 14 Mar 2018 23:43:50 +0530 Subject: [PATCH] Type annoted requests/__init__.py. --- requests/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requests/__init__.py b/requests/__init__.py index bd9c8bb3..5cde74cd 100644 --- a/requests/__init__.py +++ b/requests/__init__.py @@ -46,7 +46,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. @@ -71,7 +71,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('.')))