Skip to content

Commit

Permalink
fix: remove spurious PreChunkT annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
scanny committed Dec 7, 2024
1 parent 626b9ce commit a6928e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unstructured/chunking/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a6928e8

Please sign in to comment.