From e35416be23bc30d42867526db7b2e22f289bbbac Mon Sep 17 00:00:00 2001 From: christinestraub Date: Sun, 4 Aug 2024 13:50:11 -0700 Subject: [PATCH] test: fix lint errors --- .../partition/pdf_image/test_inference_utils.py | 5 +++-- unstructured/partition/pdf_image/inference_utils.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test_unstructured/partition/pdf_image/test_inference_utils.py b/test_unstructured/partition/pdf_image/test_inference_utils.py index cfcc641707..d419cb8527 100644 --- a/test_unstructured/partition/pdf_image/test_inference_utils.py +++ b/test_unstructured/partition/pdf_image/test_inference_utils.py @@ -1,10 +1,11 @@ -from unstructured_inference.inference.elements import TextRegion, ImageTextRegion +from unstructured_inference.inference.elements import ImageTextRegion, TextRegion from unstructured_inference.inference.layoutelement import LayoutElement from unstructured.documents.elements import ElementType from unstructured.partition.pdf_image.inference_utils import ( build_layout_elements_from_ocr_regions, - merge_text_regions, merge_embedded_overlapping_regions, + merge_embedded_overlapping_regions, + merge_text_regions, ) diff --git a/unstructured/partition/pdf_image/inference_utils.py b/unstructured/partition/pdf_image/inference_utils.py index 93462a16b4..3c316df1ce 100644 --- a/unstructured/partition/pdf_image/inference_utils.py +++ b/unstructured/partition/pdf_image/inference_utils.py @@ -3,7 +3,7 @@ from typing import TYPE_CHECKING, Optional from unstructured_inference.constants import Source -from unstructured_inference.inference.elements import TextRegion, ImageTextRegion +from unstructured_inference.inference.elements import ImageTextRegion, TextRegion from unstructured_inference.inference.layoutelement import ( LayoutElement, partition_groups_from_regions,