1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

rollback noReturn to tuple

This commit is contained in:
Kelly Brazil
2022-03-10 08:00:37 -08:00
parent e4ae0fea63
commit 4fc04256a5
3 changed files with 6 additions and 6 deletions

View File

@ -49,7 +49,7 @@ Examples:
{example output}
...
"""
from typing import Dict, Iterable, Union, NoReturn
from typing import Dict, Iterable, Union
import jc.utils
from jc.streaming import (
add_jc_meta, streaming_input_type_check, streaming_line_input_type_check, raise_or_yield
@ -99,7 +99,7 @@ def parse(
raw: bool = False,
quiet: bool = False,
ignore_exceptions: bool = False
) -> Union[Iterable[Dict], NoReturn]:
) -> Union[Iterable[Dict], tuple]:
"""
Main text parsing generator function. Returns an iterator object.

View File

@ -49,7 +49,7 @@ Examples:
{example output}
...
"""
from typing import Dict, Iterable, Union, NoReturn
from typing import Dict, Iterable, Union
import jc.utils
from jc.streaming import (
add_jc_meta, streaming_input_type_check, streaming_line_input_type_check, raise_or_yield
@ -103,7 +103,7 @@ def parse(
raw: bool = False,
quiet: bool = False,
ignore_exceptions: bool = False
) -> Union[Iterable[Dict], NoReturn]:
) -> Union[Iterable[Dict], tuple]:
"""
Main text parsing generator function. Returns an iterator object.

View File

@ -89,7 +89,7 @@ Examples:
...
"""
import re
from typing import Dict, Iterable, Union, NoReturn
from typing import Dict, Iterable, Union
import jc.utils
from jc.streaming import (
add_jc_meta, streaming_input_type_check, streaming_line_input_type_check, raise_or_yield
@ -148,7 +148,7 @@ def parse(
raw: bool = False,
quiet: bool = False,
ignore_exceptions: bool = False
) -> Union[Iterable[Dict], NoReturn]:
) -> Union[Iterable[Dict], tuple]:
"""
Main text parsing generator function. Returns an iterator object.