Skip to content

Commit 74045f3

Browse files
committed
add TYPE_CHECKING block
1 parent 976f68e commit 74045f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/unstructured_client/_hooks/custom/form_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
from __future__ import annotations
22

33
import logging
4-
from typing import Union
4+
from typing import TYPE_CHECKING
55
from typing_extensions import TypeAlias
66

77
from requests_toolbelt.multipart.decoder import MultipartDecoder # type: ignore
88

99
from unstructured_client._hooks.custom.common import UNSTRUCTURED_CLIENT_LOGGER_NAME
1010
from unstructured_client.models import shared
1111

12+
if TYPE_CHECKING:
13+
from typing import Union
14+
1215
logger = logging.getLogger(UNSTRUCTURED_CLIENT_LOGGER_NAME)
1316
FormData: TypeAlias = "dict[str, Union[str, shared.Files, list[str]]]"
1417

0 commit comments

Comments
 (0)