new: dev: use TypedDict

This commit is contained in:
rachmadaniHaryono 2019-04-28 10:27:44 +08:00
parent 143c89e077
commit add26b698e

8
buku
View File

@ -43,6 +43,7 @@ except ImportError:
pass
from bs4 import BeautifulSoup
import certifi
from mypy_extensions import TypedDict
import urllib3
from urllib3.exceptions import LocationParseError
from urllib3.util import parse_url, make_headers
@ -2762,7 +2763,12 @@ PROMPT KEYS:
# ----------------
def convert_bookmark_set(bookmark_set: List[Tuple[Any, Any, Any, Any, Any, Any]], export_type: str) -> Dict[str, Any]:
ConverterResult = TypedDict('ConverterResult', {'data': str, 'count': int})
def convert_bookmark_set(
bookmark_set: List[Tuple[Any, Any, Any, Any, Any, Any]],
export_type: str) -> ConverterResult:
"""Convert list of bookmark set into multiple data format.
Parameters