Skip to content

Commit 5bbbb19

Browse files
committed
Fix code style
1 parent 85e66bb commit 5bbbb19

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

integrations/paddleocr/src/haystack_integrations/components/converters/paddleocr/paddleocr_vl_document_converter.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@
1313
)
1414
from haystack.dataclasses import ByteStream
1515
from haystack.utils import Secret, deserialize_secrets_inplace
16-
from paddlex.inference.serving.schemas.paddleocr_vl import InferRequest as PaddleOCRVLInferRequest # type: ignore[import-untyped]
17-
from paddlex.inference.serving.schemas.paddleocr_vl import InferResult as PaddleOCRVLInferResult # type: ignore[import-untyped]
16+
from paddlex.inference.serving.schemas.paddleocr_vl import ( # type: ignore[import-untyped]
17+
InferRequest as PaddleOCRVLInferRequest,
18+
)
19+
from paddlex.inference.serving.schemas.paddleocr_vl import ( # type: ignore[import-untyped]
20+
InferResult as PaddleOCRVLInferResult,
21+
)
1822
from paddlex.inference.serving.schemas.shared.ocr import FileType # type: ignore[import-untyped]
19-
from typing_extensions import Self, TypeAlias
23+
from typing_extensions import Self
2024

2125
logger = logging.getLogger(__name__)
2226

2327

24-
FileTypeInput: TypeAlias = Union[Literal["pdf", "image"], None]
28+
FileTypeInput = Union[Literal["pdf", "image"], None]
2529

2630
# Supported image file extensions
2731
_IMAGE_EXTENSIONS = {

0 commit comments

Comments
 (0)