From 12671d48198c3b14b3ee23f4405a5ad35dad5c86 Mon Sep 17 00:00:00 2001 From: "Ratan.Kulshreshtha" Date: Tue, 13 Mar 2018 12:10:51 +0530 Subject: [PATCH] Added type hints for help.py. --- requests/help.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/requests/help.py b/requests/help.py index 5440ee61..20df0eaf 100644 --- a/requests/help.py +++ b/requests/help.py @@ -10,6 +10,8 @@ import idna import urllib3 import chardet +from typing import Dict + from . import __version__ as requests_version try: @@ -23,7 +25,7 @@ else: import cryptography -def _implementation(): +def _implementation() -> Dict: """Return a dict with the Python implementation and version. Provide both the name and the version of the Python implementation @@ -56,7 +58,7 @@ def _implementation(): return {'name': implementation, 'version': implementation_version} -def info(): +def info() -> Dict: """Generate information for a bug report.""" try: platform_info = {