From 4fc04256a567c502a88ac8a1bd189746387c93f1 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 10 Mar 2022 08:00:37 -0800 Subject: [PATCH] rollback noReturn to tuple --- jc/parsers/foo_s.py | 4 ++-- jc/parsers/pidstat_s.py | 4 ++-- jc/parsers/rsync_s.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jc/parsers/foo_s.py b/jc/parsers/foo_s.py index ae40743c..1113202d 100644 --- a/jc/parsers/foo_s.py +++ b/jc/parsers/foo_s.py @@ -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. diff --git a/jc/parsers/pidstat_s.py b/jc/parsers/pidstat_s.py index 4c79d612..281f82aa 100644 --- a/jc/parsers/pidstat_s.py +++ b/jc/parsers/pidstat_s.py @@ -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. diff --git a/jc/parsers/rsync_s.py b/jc/parsers/rsync_s.py index 8beec964..94b874e3 100644 --- a/jc/parsers/rsync_s.py +++ b/jc/parsers/rsync_s.py @@ -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.