Skip to content

Commit

Permalink
fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Nov 21, 2024
1 parent 5baebc0 commit 4fdc3df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/json/json_reader.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4fdc3df

Please sign in to comment.