mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 06:46:15 +00:00
Merge pull request #4542 from RatanShreshtha/3.0
Added type hints for help.py.
This commit is contained in:
+4
-2
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user