Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Oct 24, 2024
1 parent ea6697c commit 753c843
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haystack/components/routers/file_type_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def __init__(self, mime_types: List[str], additional_mimetypes: Optional[Dict[st
raise ValueError(f"Invalid regex pattern '{mime_type}'.")
self.mime_type_patterns.append(pattern)

# the actual output type is List[Union[Path, ByteStream]],
# but this would cause PipelineConnectError with Converters
component.set_output_types(
self,
unclassified=List[Union[str, Path, ByteStream]],
Expand Down

0 comments on commit 753c843

Please sign in to comment.