Merge pull request #4542 from RatanShreshtha/3.0

Added type hints for help.py.
This commit is contained in:
2018-03-13 09:52:06 -04:00
committed by GitHub
+4 -2
View File
@@ -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 = {