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:
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user