Type checks for pack
This commit is contained in:
parent
5082c2226b
commit
8c6dd0bde9
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user