1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-09 01:05:53 +02:00

enhance type annotation

This commit is contained in:
Kelly Brazil
2022-03-21 13:36:54 -07:00
parent f611d08b50
commit 00c39450f9

View File

@ -287,7 +287,7 @@ def _create_table_dict(header: List[str], data: List[List[str]]) -> List[Dict[st
return [dict(zip(header, r)) for r in data] return [dict(zip(header, r)) for r in data]
def _parse_pretty(string: str) -> List: def _parse_pretty(string: str) -> List[Dict[str, str]]:
string_lines: List[str] = string.splitlines() string_lines: List[str] = string.splitlines()
clean: List[Tuple[int, List[str]]] = _normalize_rows(string_lines) clean: List[Tuple[int, List[str]]] = _normalize_rows(string_lines)
raw_headers: List[List[str]] = _get_headers(clean) raw_headers: List[List[str]] = _get_headers(clean)