mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
use Tuple for <3.9 compatibility
This commit is contained in:
@ -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 Dict, Union, Iterable
|
from typing import Dict, Tuple, Union, Iterable
|
||||||
from .jc_types import JSONDictType, MetadataType
|
from .jc_types import JSONDictType, MetadataType
|
||||||
|
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ def raise_or_yield(
|
|||||||
ignore_exceptions: bool,
|
ignore_exceptions: bool,
|
||||||
e: BaseException,
|
e: BaseException,
|
||||||
line: str
|
line: str
|
||||||
) -> tuple[BaseException, str]:
|
) -> Tuple[BaseException, str]:
|
||||||
"""
|
"""
|
||||||
Return the exception object and line string if ignore_exceptions is
|
Return the exception object and line string if ignore_exceptions is
|
||||||
True. Otherwise, re-raise the exception from the exception object with
|
True. Otherwise, re-raise the exception from the exception object with
|
||||||
|
Reference in New Issue
Block a user