Skip to content

Commit 349e20d

Browse files
committed
chore!: paddleocr - drop Python 3.9 and use X|Y typing
1 parent 58ee1f7 commit 349e20d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _infer_file_type_from_source(
8686
return None
8787

8888

89-
def _normalize_file_type(file_type: FileTypeInput | None) -> FileType | None:
89+
def _normalize_file_type(file_type: FileTypeInput) -> FileType | None:
9090
"""
9191
Normalize file type input to the numeric format expected by the API.
9292
@@ -145,7 +145,7 @@ def __init__(
145145
*,
146146
api_url: str,
147147
access_token: Secret = Secret.from_env_var("AISTUDIO_ACCESS_TOKEN"),
148-
file_type: FileTypeInput | None = None,
148+
file_type: FileTypeInput = None,
149149
use_doc_orientation_classify: bool | None = None,
150150
use_doc_unwarping: bool | None = None,
151151
use_layout_detection: bool | None = None,

0 commit comments

Comments
 (0)