From 8c6dd0bde9c4b80a91e8b2b4dc57d8d2e051de9b Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Tue, 19 Jul 2022 10:43:10 -0700 Subject: [PATCH] Type checks for pack --- gptc/pack.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gptc/pack.py b/gptc/pack.py index 4177ad8..931fc01 100644 --- a/gptc/pack.py +++ b/gptc/pack.py @@ -2,11 +2,12 @@ import sys 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) - texts = {} + texts: Dict[str, List[str]] = {} exceptions = [] for path in paths: