1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-06 22:32:54 +02:00

fix type annotation

This commit is contained in:
Kelly Brazil
2022-03-09 16:28:55 -08:00
parent d3727ea090
commit e4ae0fea63
5 changed files with 8 additions and 8 deletions

View File

@ -63,7 +63,7 @@ Examples:
def parse(data: Iterable[str], def parse(data: Iterable[str],
raw: bool = False, raw: bool = False,
quiet: bool = False, quiet: bool = False,
ignore_exceptions: bool = False) -> Union[Iterable[Dict], tuple] ignore_exceptions: bool = False) -> Union[Iterable[Dict], NoReturn]
``` ```
Main text parsing generator function. Returns an iterator object. Main text parsing generator function. Returns an iterator object.

View File

@ -102,7 +102,7 @@ Examples:
def parse(data: Iterable[str], def parse(data: Iterable[str],
raw: bool = False, raw: bool = False,
quiet: bool = False, quiet: bool = False,
ignore_exceptions: bool = False) -> Union[Iterable[Dict], tuple] ignore_exceptions: bool = False) -> Union[Iterable[Dict], NoReturn]
``` ```
Main text parsing generator function. Returns an iterator object. Main text parsing generator function. Returns an iterator object.

View File

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

View File

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

View File

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