From f6e971c6523cf991c34e027da752cee9cb51511d Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 18 Oct 2022 11:04:08 -0700 Subject: [PATCH] fix metadata return type --- jc/streaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/streaming.py b/jc/streaming.py index 995ac126..03692bf6 100644 --- a/jc/streaming.py +++ b/jc/streaming.py @@ -1,7 +1,7 @@ """jc - JSON Convert streaming utils""" from functools import wraps -from typing import Union, Iterable +from typing import Dict, Union, Iterable from .jc_types import JSONDictType, MetadataType @@ -28,7 +28,7 @@ def stream_success(output_line: JSONDictType, ignore_exceptions: bool) -> JSONDi return output_line -def stream_error(e: BaseException, line: str) -> MetadataType: +def stream_error(e: BaseException, line: str) -> Dict[str, MetadataType]: """ Return an error `_jc_meta` field. """