We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc72b75 commit f5325d1Copy full SHA for f5325d1
1 file changed
src/unstructured_client/_hooks/custom/split_pdf_hook.py
@@ -10,7 +10,7 @@
10
import tempfile
11
import threading
12
import uuid
13
-from collections.abc import Awaitable
+from collections.abc import Awaitable, Iterable
14
from concurrent import futures
15
from functools import partial
16
from pathlib import Path
@@ -652,6 +652,7 @@ def _before_request_unlocked(
652
pdf_bytes = pdf.stream.read()
653
654
temp_dir_path = None
655
+ pdf_chunks: Iterable[Tuple[BinaryIO, int]]
656
if cache_tmp_data_feature:
657
pdf_chunk_paths = self._get_pdf_chunk_paths(
658
pdf_bytes,
0 commit comments