Skip to content

Commit

Permalink
Use forward reference for AnalyzeResult (#6030)
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje authored Oct 11, 2023
1 parent 3803d23 commit 4b8b6e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion haystack/preview/components/file_converters/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def from_dict(cls, data: Dict[str, Any]) -> "AzureOCRDocumentConverter":
return default_from_dict(cls, data)

@staticmethod
def _convert_azure_result_to_document(result: AnalyzeResult, id_hash_keys: List[str], file_suffix: str) -> Document:
def _convert_azure_result_to_document(
result: "AnalyzeResult", id_hash_keys: List[str], file_suffix: str
) -> Document:
"""
Convert the result of Azure OCR to a Haystack text Document.
"""
Expand Down

0 comments on commit 4b8b6e9

Please sign in to comment.