Skip to content

Commit 6a6235a

Browse files
committed
typing
1 parent b47f346 commit 6a6235a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unstructured_client/_hooks/custom/form_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
import logging
4-
from typing import Union
54
from typing_extensions import TypeAlias
65

76
from requests_toolbelt.multipart.decoder import MultipartDecoder # type: ignore
@@ -10,7 +9,8 @@
109
from unstructured_client.models import shared
1110

1211
logger = logging.getLogger(UNSTRUCTURED_CLIENT_LOGGER_NAME)
13-
FormData: TypeAlias = dict[str, Union[str, shared.Files, list[str]]]
12+
13+
FormData: TypeAlias = dict[str, str | shared.Files | list[str]]
1414

1515
PARTITION_FORM_FILES_KEY = "files"
1616
PARTITION_FORM_SPLIT_PDF_PAGE_KEY = "split_pdf_page"

0 commit comments

Comments
 (0)