Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-13 09:53:42 -04:00
parent 9af75f01a9
commit 2bf628be3c
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ import idna
import urllib3
import chardet
from typing import Dict
from . import types
from . import __version__ as requests_version
@@ -25,7 +25,7 @@ else:
import cryptography
def _implementation() -> Dict:
def _implementation() -> types.Help:
"""Return a dict with the Python implementation and version.
Provide both the name and the version of the Python implementation
@@ -58,7 +58,7 @@ def _implementation() -> Dict:
return {'name': implementation, 'version': implementation_version}
def info() -> Dict:
def info() -> types.Help:
"""Generate information for a bug report."""
try:
platform_info = {
+3 -2
View File
@@ -1,6 +1,6 @@
from typing import (
Callable, Optional, Union, Any, Iterable, List, Mapping, MutableMapping,
Tuple, IO, Text, Type
Tuple, IO, Text, Type, Dict
)
from . import auth
@@ -46,4 +46,5 @@ Hooks = Optional[MutableMapping[Text, Union[Iterable[_Hook], _Hook]]]
Stream = Optional[bool]
Verify = Union[None, bool, Text]
Cert = Union[Text, Tuple[Text, Text]]
JSON = Optional[MutableMapping]
JSON = Optional[MutableMapping]
Help = Dict