From 4fdc3df8f62f6f874353a7805d599f4d723c10ba Mon Sep 17 00:00:00 2001 From: BeritJanssen Date: Thu, 21 Nov 2024 12:22:56 +0100 Subject: [PATCH] fix typing issue --- tests/json/json_reader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/json/json_reader.py b/tests/json/json_reader.py index b5fa52d..cfb2784 100644 --- a/tests/json/json_reader.py +++ b/tests/json/json_reader.py @@ -1,13 +1,14 @@ from glob import glob import json import os +from typing import Union from ianalyzer_readers.extract import JSON from ianalyzer_readers.readers.core import Field from ianalyzer_readers.readers.json import JSONReader -def merge_lines(lines: list | str) -> str: +def merge_lines(lines: Union[list, str]) -> str: if isinstance(lines, list): return "\n".join(lines) return lines