@@ -15,7 +15,7 @@ class JsonParser:
1515 """
1616
1717 @staticmethod
18- def parse (original : str ) -> Iterator [Any ]: # type: ignore[misc]
18+ def parse (original : str ) -> Iterator [Any ]:
1919 if not (original .startswith ("{" ) or original .startswith ("[" )):
2020 # Doesn't look like JSON - let's return as a variable
2121 yield original if original .isnumeric () else Variable (original )
@@ -26,7 +26,7 @@ def parse(original: str) -> Iterator[Any]: # type: ignore[misc]
2626 yield result
2727
2828 @staticmethod
29- def parse_with_tokens (original : str ) -> Iterator [Tuple [Any , int ]]: # type: ignore[misc]
29+ def parse_with_tokens (original : str ) -> Iterator [Tuple [Any , int ]]:
3030 """
3131 Parse JSON string. Returns a tuple of (json_doc, nr_of_bytes_processed)
3232 """
@@ -37,7 +37,7 @@ def parse_with_tokens(original: str) -> Iterator[Tuple[Any, int]]: # type: igno
3737 yield result , tokenizer .get_tokens_parsed ()
3838
3939 @staticmethod
40- def _get_next_document ( # type: ignore[misc]
40+ def _get_next_document (
4141 original : str ,
4242 tokenizer : ClauseTokenizer ,
4343 only_parse_initial : bool = False ,
@@ -135,7 +135,7 @@ def _get_next_document( # type: ignore[misc]
135135 return result
136136
137137 @staticmethod
138- def _parse_list (original : str , tokenizer : ClauseTokenizer ) -> List [Any ]: # type: ignore
138+ def _parse_list (original : str , tokenizer : ClauseTokenizer ) -> List [Any ]:
139139 result : List [Any ] = list ()
140140 section = None
141141 current_phrase = ""
0 commit comments