From a6928e87bfbd737261d4826fe0287874e06c4d28 Mon Sep 17 00:00:00 2001 From: Steve Canny Date: Sat, 7 Dec 2024 11:30:14 -0800 Subject: [PATCH] fix: remove spurious PreChunkT annotation --- unstructured/chunking/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unstructured/chunking/base.py b/unstructured/chunking/base.py index 27fd7e62fb..1295babdfc 100644 --- a/unstructured/chunking/base.py +++ b/unstructured/chunking/base.py @@ -1153,11 +1153,11 @@ def _remaining_space(self) -> int: class PreChunkCombiner: """Filters pre-chunk stream to combine small pre-chunks where possible.""" - def __init__(self, pre_chunks: Iterable[PreChunkT], opts: ChunkingOptions): + def __init__(self, pre_chunks: Iterable[PreChunk], opts: ChunkingOptions): self._pre_chunks = pre_chunks self._opts = opts - def iter_combined_pre_chunks(self) -> Iterator[PreChunkT]: + def iter_combined_pre_chunks(self) -> Iterator[PreChunk]: """Generate pre-chunk objects, combining `PreChunk` objects when they'll fit in window.""" accum = _PreChunkAccumulator(self._opts)