Skip to content

Commit

Permalink
fix flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
parisa-zahedi committed Apr 15, 2024
1 parent de2b859 commit 5d6c343
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions interest/output_generator/text_formater.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ def __init__(self, output_unit: str, sentences_per_segment: int,
self.texts: List[str] = []

def format_output(self, texts: Union[None, List[str]]) -> (
Union)[str, List[str],List[List[str]], None]:
Union)[str, List[str], List[List[str]], None]:
"""
Formats input texts based on the specified output unit.
Args:
texts (List[str]): List of input texts to be formatted.
Returns:
Union[str, List[str], List[List[str]]]: Formatted output text based on the
selected output_unit. For 'full_text', returns a single string.
For 'paragraph' and 'segmented_text', returns a list of segmented
text lists.
Union[str, List[str], List[List[str]]]: Formatted output text
based on the selected output_unit. For 'full_text', returns a
single string. For 'paragraph' and 'segmented_text', returns a
list of segmented text lists.
Raises:
ValueError: If input 'texts' is not a list of strings.
Expand Down

0 comments on commit 5d6c343

Please sign in to comment.