mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
+3
-3
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user