1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

fix metadata return type

This commit is contained in:
Kelly Brazil
2022-10-18 11:04:08 -07:00
parent dfa7a71f53
commit f6e971c652

View File

@ -1,7 +1,7 @@
"""jc - JSON Convert streaming utils""" """jc - JSON Convert streaming utils"""
from functools import wraps from functools import wraps
from typing import Union, Iterable from typing import Dict, Union, Iterable
from .jc_types import JSONDictType, MetadataType from .jc_types import JSONDictType, MetadataType
@ -28,7 +28,7 @@ def stream_success(output_line: JSONDictType, ignore_exceptions: bool) -> JSONDi
return output_line 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. Return an error `_jc_meta` field.
""" """