From 1b44b5b05afc0499621f45bf836f9f955195f562 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 18 Oct 2022 11:24:55 -0700 Subject: [PATCH] use typing Tuple for <3.9 compatibility --- jc/jc_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/jc_types.py b/jc/jc_types.py index 0597165f..88c3c51c 100644 --- a/jc/jc_types.py +++ b/jc/jc_types.py @@ -2,11 +2,11 @@ import sys from datetime import datetime -from typing import Dict, List, Iterator, Optional, Union +from typing import Dict, List, Tuple, Iterator, Optional, Union JSONDictType = Dict[str, Union[str, int, float, bool, List, Dict, None]] MetadataType = Dict[str, Optional[Union[str, int, float, List[str], datetime]]] -StreamingOutputType = Iterator[Union[JSONDictType, tuple[BaseException, str]]] +StreamingOutputType = Iterator[Union[JSONDictType, Tuple[BaseException, str]]] if sys.version_info >= (3, 8): from typing import TypedDict