Type checks for pack

This commit is contained in:
Samuel Sloniker 2022-07-19 10:43:10 -07:00
parent 5082c2226b
commit 8c6dd0bde9

View File

@ -2,11 +2,12 @@
import sys import sys
import os import os
from typing import List, Dict, Tuple
def pack(directory, print_exceptions=False): def pack(directory: str, print_exceptions: bool=False) -> Tuple[List[Dict[str, str]], List[Tuple[Exception]]]:
paths = os.listdir(directory) paths = os.listdir(directory)
texts = {} texts: Dict[str, List[str]] = {}
exceptions = [] exceptions = []
for path in paths: for path in paths: